Volleyball 4.2 Script by Sneaky - Pastebin.com (2024)

  1. local dev = true

  2. local Volleyball42 = Instance.new("ScreenGui")

  3. local Main = Instance.new("Frame")

  4. local UICorner = Instance.new("UICorner")

  5. local TextLabel = Instance.new("TextLabel")

  6. local Setting = Instance.new("TextButton")

  7. local Serving = Instance.new("TextButton")

  8. local Receives = Instance.new("TextButton")

  9. local Power = Instance.new("TextButton")

  10. local Block = Instance.new("TextButton")

  11. local Destroy = Instance.new("TextButton")

  12. Volleyball42.Name = "Volleyball42"

  13. Volleyball42.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")

  14. Volleyball42.ZIndexBehavior = Enum.ZIndexBehavior.Sibling

  15. Main.Name = "Main"

  16. Main.Parent = Volleyball42

  17. Main.BackgroundColor3 = Color3.fromRGB(104, 104, 104)

  18. Main.Position = UDim2.new(0.428033143, 0, 0.309200615, 0)

  19. Main.Size = UDim2.new(0, 283, 0, 159)

  20. Main.Active = true

  21. Main.Draggable = true

  22. UICorner.Parent = Main

  23. TextLabel.Parent = Main

  24. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)

  25. TextLabel.BackgroundTransparency = 1.000

  26. TextLabel.Size = UDim2.new(0, 283, 0, 26)

  27. TextLabel.Font = Enum.Font.Oswald

  28. TextLabel.Text = "Volleyball 4.2 by Sneaky"

  29. TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)

  30. TextLabel.TextScaled = true

  31. TextLabel.TextSize = 14.000

  32. TextLabel.TextWrapped = true

  33. Setting.Name = "Setting"

  34. Setting.Parent = Main

  35. Setting.BackgroundColor3 = Color3.fromRGB(0, 0, 0)

  36. Setting.BackgroundTransparency = 0.400

  37. Setting.Position = UDim2.new(0.0494699515, 0, 0.207547188, 0)

  38. Setting.Size = UDim2.new(0, 121, 0, 34)

  39. Setting.Font = Enum.Font.SourceSans

  40. Setting.Text = "Setting"

  41. Setting.TextColor3 = Color3.fromRGB(255, 255, 255)

  42. Setting.TextScaled = true

  43. Setting.TextSize = 14.000

  44. Setting.TextWrapped = true

  45. Serving.Name = "Serving"

  46. Serving.Parent = Main

  47. Serving.BackgroundColor3 = Color3.fromRGB(0, 0, 0)

  48. Serving.BackgroundTransparency = 0.400

  49. Serving.Position = UDim2.new(0.0494699515, 0, 0.465408802, 0)

  50. Serving.Size = UDim2.new(0, 121, 0, 34)

  51. Serving.Font = Enum.Font.SourceSans

  52. Serving.Text = "Serving"

  53. Serving.TextColor3 = Color3.fromRGB(255, 255, 255)

  54. Serving.TextScaled = true

  55. Serving.TextSize = 14.000

  56. Serving.TextWrapped = true

  57. Receives.Name = "Spiking"

  58. Receives.Parent = Main

  59. Receives.BackgroundColor3 = Color3.fromRGB(0, 0, 0)

  60. Receives.BackgroundTransparency = 0.400

  61. Receives.Position = UDim2.new(0.0494699515, 0, 0.729559779, 0)

  62. Receives.Size = UDim2.new(0, 121, 0, 34)

  63. Receives.Font = Enum.Font.SourceSans

  64. Receives.Text = "Spiking"

  65. Receives.TextColor3 = Color3.fromRGB(255, 255, 255)

  66. Receives.TextScaled = true

  67. Receives.TextSize = 14.000

  68. Receives.TextWrapped = true

  69. Power.Name = "Power"

  70. Power.Parent = Main

  71. Power.BackgroundColor3 = Color3.fromRGB(0, 0, 0)

  72. Power.BackgroundTransparency = 0.400

  73. Power.Position = UDim2.new(0.526501775, 0, 0.207547188, 0)

  74. Power.Size = UDim2.new(0, 121, 0, 34)

  75. Power.Font = Enum.Font.SourceSans

  76. Power.Text = "Power"

  77. Power.TextColor3 = Color3.fromRGB(255, 255, 255)

  78. Power.TextScaled = true

  79. Power.TextSize = 14.000

  80. Power.TextWrapped = true

  81. Block.Name = "Sprint"

  82. Block.Parent = Main

  83. Block.BackgroundColor3 = Color3.fromRGB(0, 0, 0)

  84. Block.BackgroundTransparency = 0.400

  85. Block.Position = UDim2.new(0.526501775, 0, 0.465408802, 0)

  86. Block.Size = UDim2.new(0, 121, 0, 34)

  87. Block.Font = Enum.Font.SourceSans

  88. Block.Text = "Sprint"

  89. Block.TextColor3 = Color3.fromRGB(255, 255, 255)

  90. Block.TextScaled = true

  91. Block.TextSize = 14.000

  92. Block.TextWrapped = true

  93. Destroy.Name = "Destroy"

  94. Destroy.Parent = Main

  95. Destroy.BackgroundColor3 = Color3.fromRGB(0, 0, 0)

  96. Destroy.BackgroundTransparency = 0.400

  97. Destroy.Position = UDim2.new(0.526501775, 0, 0.729559779, 0)

  98. Destroy.Size = UDim2.new(0, 121, 0, 34)

  99. Destroy.Font = Enum.Font.SourceSans

  100. Destroy.Text = "Destroy"

  101. Destroy.TextColor3 = Color3.fromRGB(170, 0, 0)

  102. Destroy.TextScaled = true

  103. Destroy.TextSize = 14.000

  104. Destroy.TextWrapped = true

  105. local UserInputService = game:GetService("UserInputService")

  106. local player = game.Players.LocalPlayer

  107. local setting

  108. local serving

  109. local spiking

  110. local power

  111. local block

  112. local sprint

  113. for i, v in pairs(workspace:GetChildren()) do

  114. if v:IsA("Part") and not v:IsA("Camera") and v.Transparency == 1 and not v.Name == "Net" then

  115. v:Destroy()

  116. end

  117. end

  118. if dev then print(1) end

  119. local ui = player:WaitForChild("PlayerGui"):WaitForChild("Volleyball42")

  120. local function lookAt(chr,target)

  121. if chr.PrimaryPart then

  122. local frame = CFrame.new(chr.PrimaryPart.Position, target.Position)

  123. chr:SetPrimaryPartCFrame(frame)

  124. end

  125. end

  126. local function lookAway(chr,target)

  127. if chr.PrimaryPart then

  128. local frame = CFrame.new(chr.PrimaryPart.Position, target.Position)

  129. chr:SetPrimaryPartCFrame(frame)

  130. chr.HumanoidRootPart.CFrame *= CFrame.Angles(0, math.rad(180), 0)

  131. end

  132. end

  133. local mouse = game.Players.LocalPlayer:GetMouse()

  134. game.Players.LocalPlayer.CharacterAdded:connect(

  135. function(char)

  136. mouse.TargetFilter = char

  137. end

  138. )

  139. for i, v in pairs(ui.Main:GetChildren()) do

  140. if v:IsA("TextButton") then

  141. v.Activated:Connect(function()

  142. -- Destroy

  143. if v.Name == "Destroy" then

  144. if debug then print("Destroy") end

  145. ui:Destroy()

  146. end

  147. -- Setting

  148. if v.Name == "Setting" then

  149. if debug then print("Setting") end

  150. if setting then

  151. for i, v in pairs(workspace:GetChildren()) do

  152. if v.Name == "Left" or v.Name == "Right" then

  153. v:Destroy()

  154. end

  155. end

  156. ui:WaitForChild("Main").Setting.TextColor = BrickColor.new("White")

  157. setting = false

  158. return

  159. end

  160. ui:WaitForChild("Main").Setting.TextColor = BrickColor.new("Bright green")

  161. left = Instance.new("Part")

  162. right = Instance.new("Part")

  163. left.Name = "Left"

  164. right.Name = "Right"

  165. left.Position = Vector3.new(-23.789, 8, 0.007)

  166. right.Position = Vector3.new(23.783, 8, -0.006)

  167. left.Size = Vector3.new(1.607, 1, 2)

  168. right.Size = Vector3.new(1.607, 1, 2)

  169. left.CanCollide = false

  170. right.CanCollide = false

  171. left.Anchored = true

  172. right.Anchored = true

  173. left.Parent = workspace

  174. right.Parent = workspace

  175. setting = true

  176. end

  177. -- Serving

  178. if v.Name == "Serving" then

  179. if debug then print("Serving") end

  180. if serving then

  181. for i, v in pairs(workspace:GetChildren()) do

  182. if v.Name == "RedRight" or v.Name == "RedLeft" then

  183. v:Destroy()

  184. end

  185. end

  186. ui:WaitForChild("Main").Serving.TextColor = BrickColor.new("White")

  187. serving = false

  188. else

  189. redRCorner = Instance.new("Part")

  190. redLCorner = Instance.new("Part")

  191. bluRCorner = Instance.new("Part")

  192. bluLCorner = Instance.new("Part")

  193. redRCorner.Name = "RedRight"

  194. redLCorner.Name = "RedLeft"

  195. bluRCorner.Name = "RedRight"

  196. bluLCorner.Name = "RedLeft"

  197. redRCorner.Position = Vector3.new(23.479, 0.638, -47.059)

  198. redLCorner.Position = Vector3.new(-23.577, 0.633, -47.059)

  199. bluRCorner.Position = Vector3.new(-23.577, 0.633, 46.936)

  200. bluLCorner.Position = Vector3.new(23.483, 0.628, 46.936)

  201. redRCorner.Size = Vector3.new(1.048, 0.076, 1.07)

  202. redLCorner.Size = Vector3.new(1.048, 0.076, 1.07)

  203. bluRCorner.Size = Vector3.new(1.048, 0.076, 1.07)

  204. bluLCorner.Size = Vector3.new(1.048, 0.076, 1.07)

  205. redRCorner.Anchored = true

  206. redLCorner.Anchored = true

  207. bluRCorner.Anchored = true

  208. bluLCorner.Anchored = true

  209. redRCorner.CanCollide = false

  210. redLCorner.CanCollide = false

  211. bluRCorner.CanCollide = false

  212. bluRCorner.CanCollide = false

  213. redRCorner.Parent = workspace

  214. redLCorner.Parent = workspace

  215. bluRCorner.Parent = workspace

  216. bluLCorner.Parent = workspace

  217. ui:WaitForChild("Main").Serving.TextColor = BrickColor.new("Bright green")

  218. serving = true

  219. end

  220. end

  221. -- Spiking

  222. if v.Name == "Spiking" then

  223. if debug then print("Spiking") end

  224. if spiking then

  225. for i, v in pairs(workspace:GetChildren()) do

  226. if v.Name == "RedSpike" or v.Name == "bluSpike" then

  227. v:Destroy()

  228. end

  229. end

  230. ui:WaitForChild("Main").Spiking.TextColor = BrickColor.new("White")

  231. spiking = false

  232. else

  233. redSpike = Instance.new("Part")

  234. redSpike.Name = "RedSpike"

  235. redSpike.Anchored = true

  236. redSpike.CanCollide = false

  237. redSpike.Position = Vector3.new(-0.009, 0.501, -23.927)

  238. redSpike.Size = Vector3.new(47.936, 0.001, 46.988)

  239. redSpike.Transparency = 1

  240. redSpike.Parent = workspace

  241. bluSpike = Instance.new("Part")

  242. bluSpike.Name = "RedSpike"

  243. bluSpike.Anchored = true

  244. bluSpike.CanCollide = false

  245. bluSpike.Position = Vector3.new(-0.009, 0.501, 23.984)

  246. bluSpike.Size = Vector3.new(47.936, 0.001, 46.988)

  247. bluSpike.Transparency = 1

  248. bluSpike.Parent = workspace

  249. ui:WaitForChild("Main").Spiking.TextColor = BrickColor.new("Bright green")

  250. spiking = true

  251. end

  252. end

  253. -- Power

  254. if v.Name == "Power" then

  255. if power then

  256. ui:WaitForChild("Main").Power.TextColor = BrickColor.new("White")

  257. power = false

  258. else

  259. ui:WaitForChild("Main").Power.TextColor = BrickColor.new("Bright green")

  260. power = true

  261. end

  262. end

  263. -- Sprint

  264. if v.Name == "Sprint" then

  265. if dev then print("Sprint") end

  266. if sprint then

  267. ui:WaitForChild("Main").Sprint.TextColor = BrickColor.new("White")

  268. sprint = false

  269. else

  270. ui:WaitForChild("Main").Sprint.TextColor = BrickColor.new("Bright green")

  271. sprint = true

  272. end

  273. end

  274. end)

  275. end

  276. end

  277. -- inputs

  278. if dev then print("setting uis to be done") end

  279. UserInputService.InputBegan:Connect(function(input, event)

  280. if input.KeyCode == Enum.KeyCode[jump] and power then

  281. local N=game:GetService("VirtualInputManager")

  282. N:SendKeyEvent(true,string.upper(maxPower),false,game)

  283. end

  284. if input.KeyCode == Enum.KeyCode[string.upper(setForward)] and setting then

  285. if player.TeamColor == BrickColor.new("Really blue") then

  286. lookAt(player.Character, left)

  287. else

  288. lookAt(player.Character, right)

  289. end

  290. end

  291. if input.KeyCode == Enum.KeyCode[string.upper(setBackwards)] and setting then

  292. if player.TeamColor == BrickColor.new("Really red") then

  293. lookAway(player.Character, left)

  294. else

  295. lookAway(player.Character, right)

  296. end

  297. end

  298. if input.KeyCode == Enum.KeyCode[jump] and serving then

  299. if debug then print("Jump") end

  300. if player.Character.UpperTorso.Position.Z > 40 and player.TeamColor == BrickColor.new("Really blue") then

  301. local r = math.random(1, 2)

  302. if r == 1 then

  303. lookAt(player.Character, redRCorner)

  304. else

  305. lookAt(player.Character, redLCorner)

  306. end

  307. elseif player.Character.UpperTorso.Position.Z < -40 and player.TeamColor == BrickColor.new("Really red") then

  308. local r = math.random(1, 2)

  309. if r == 1 then

  310. lookAt(player.Character, bluRCorner)

  311. else

  312. lookAt(player.Character, bluLCorner)

  313. end

  314. else

  315. if debug then print("False") end

  316. end

  317. end

  318. if input.KeyCode == Enum.KeyCode[jump] and spiking then

  319. if debug then print("Jump") end

  320. if block == true then return end

  321. if spikeMode == "random" or nil then

  322. local aimPart = Instance.new("Part")

  323. aimPart.Size = Vector3.new(0.318, 0.001, 0.472)

  324. if player.TeamColor == BrickColor.new("Really blue") and player.Character.UpperTorso.Position.Z < 40 then

  325. local rP = Instance.new("Part")

  326. rP.Anchored = true

  327. rP.Transparency = 1

  328. local range = 20

  329. rP.Position = redSpike.Position + Vector3.new(math.random(-range,range),10,math.random(-range,range))

  330. rP.Parent = workspace

  331. lookAt(player.Character, rP)

  332. rP:Destroy()

  333. if debug then print("Random part made") end

  334. elseif player.TeamColor == BrickColor.new("Really red") and player.Character.UpperTorso.Position.Z > -40 then

  335. local rP = Instance.new("Part")

  336. rP.Anchored = true

  337. rP.Transparency = 1

  338. local range = 20

  339. rP.Position = bluSpike.Position + Vector3.new(math.random(-range,range),10,math.random(-range,range))

  340. rP.Parent = workspace

  341. lookAt(player.Character, rP)

  342. rP:Destroy()

  343. if debug then print("Random part made") end

  344. end

  345. end

  346. if spikeMode == "point" then

  347. if player.TeamColor == BrickColor.new("Really blue") and player.Character.UpperTorso.Position.Z < 40 then

  348. local p = Instance.new("Part")

  349. p.Anchored = true

  350. p.CanCollide = false

  351. p.CFrame = CFrame.new(mouse.Hit.X, 10, mouse.Hit.Z)

  352. p.Transparency = 1

  353. p.Parent = workspace

  354. lookAt(player.Character, p)

  355. elseif player.TeamColor == BrickColor.new("Really red") and player.Character.UpperTorso.Position.Z > -40 then

  356. local p = Instance.new("Part")

  357. p.Anchored = true

  358. p.CanCollide = false

  359. p.CFrame = CFrame.new(mouse.Hit.X, 10, mouse.Hit.Z)

  360. p.Transparency = 1

  361. p.Parent = workspace

  362. lookAt(player.Character, p)

  363. end

  364. end

  365. end

  366. if input.KeyCode == Enum.KeyCode[changeMode] then

  367. if block then block = false else block = true end

  368. end

  369. if input.KeyCode == Enum.KeyCode.W or input.KeyCode == Enum.KeyCode.A or input.KeyCode == Enum.KeyCode.S or input.KeyCode == Enum.KeyCode.D then

  370. if sprint then

  371. local N=game:GetService("VirtualInputManager")

  372. N:SendKeyEvent(true,string.upper(sprintKey),false,game)

  373. task.wait(0.1)

  374. N:SendKeyEvent(true,string.upper(sprintKey),false,game)

  375. task.wait(0.1)

  376. N:SendKeyEvent(true,string.upper(sprintKey),false,game)

  377. end

  378. end

  379. end)

Volleyball 4.2 Script by Sneaky - Pastebin.com (2024)

References

Top Articles
Latest Posts
Article information

Author: Corie Satterfield

Last Updated:

Views: 6385

Rating: 4.1 / 5 (42 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Corie Satterfield

Birthday: 1992-08-19

Address: 850 Benjamin Bridge, Dickinsonchester, CO 68572-0542

Phone: +26813599986666

Job: Sales Manager

Hobby: Table tennis, Soapmaking, Flower arranging, amateur radio, Rock climbing, scrapbook, Horseback riding

Introduction: My name is Corie Satterfield, I am a fancy, perfect, spotless, quaint, fantastic, funny, lucky person who loves writing and wants to share my knowledge and understanding with you.