Volleyball 4.2 by Sneaky - Pastebin.com (2024)

  1. --[[

  2. Thank you for using Volleyball 4.2 by Sneaky! :D

  3. A couple of things to be aware of while using this GUI:

  4. - Execute the script in Spike Mode

  5. - Some elements of the GUI will only work while on a team, such as serving, spiking, and setting

  6. - Make sure to change the keybind settings below

  7. - This script is made for the Synapse X injector but may work for others

  8. - For detailed information on what each mode does, refer to the bottom of this script

  9. - Have fun :)

  10. --]]

  11. -- Settings you can change:

  12. local setForward = "f" -- Your set forward keybind (DEFAULT: F)

  13. local setBackwards = "r" -- Your set backwards keybind (DEFAULT: R)

  14. local spikeMode = "random" -- "random" will aim randomly, "point" will aim where your mouse is

  15. local changeMode = "One" -- Your keybind that switches between block mode and spike mode (DEFAULT: One)

  16. local maxPower = "c" -- Your keybind that sets your max power (DEFAULT: C)

  17. local jump = "Space" -- Your keybind to jump (DEFAULT: Space)

  18. local sprintKey = "t" -- Your keybind to sprint (DEFAULT: T)

  19. local dev = false

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

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

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

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

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

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

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

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

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

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

  30. Volleyball42.Name = "Volleyball42"

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

  32. Volleyball42.ZIndexBehavior = Enum.ZIndexBehavior.Sibling

  33. Main.Name = "Main"

  34. Main.Parent = Volleyball42

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

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

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

  38. Main.Active = true

  39. Main.Draggable = true

  40. UICorner.Parent = Main

  41. TextLabel.Parent = Main

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

  43. TextLabel.BackgroundTransparency = 1.000

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

  45. TextLabel.Font = Enum.Font.Oswald

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

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

  48. TextLabel.TextScaled = true

  49. TextLabel.TextSize = 14.000

  50. TextLabel.TextWrapped = true

  51. Setting.Name = "Setting"

  52. Setting.Parent = Main

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

  54. Setting.BackgroundTransparency = 0.400

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

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

  57. Setting.Font = Enum.Font.SourceSans

  58. Setting.Text = "Setting"

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

  60. Setting.TextScaled = true

  61. Setting.TextSize = 14.000

  62. Setting.TextWrapped = true

  63. Serving.Name = "Serving"

  64. Serving.Parent = Main

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

  66. Serving.BackgroundTransparency = 0.400

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

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

  69. Serving.Font = Enum.Font.SourceSans

  70. Serving.Text = "Serving"

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

  72. Serving.TextScaled = true

  73. Serving.TextSize = 14.000

  74. Serving.TextWrapped = true

  75. Receives.Name = "Spiking"

  76. Receives.Parent = Main

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

  78. Receives.BackgroundTransparency = 0.400

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

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

  81. Receives.Font = Enum.Font.SourceSans

  82. Receives.Text = "Spiking"

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

  84. Receives.TextScaled = true

  85. Receives.TextSize = 14.000

  86. Receives.TextWrapped = true

  87. Power.Name = "Power"

  88. Power.Parent = Main

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

  90. Power.BackgroundTransparency = 0.400

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

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

  93. Power.Font = Enum.Font.SourceSans

  94. Power.Text = "Power"

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

  96. Power.TextScaled = true

  97. Power.TextSize = 14.000

  98. Power.TextWrapped = true

  99. Block.Name = "Sprint"

  100. Block.Parent = Main

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

  102. Block.BackgroundTransparency = 0.400

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

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

  105. Block.Font = Enum.Font.SourceSans

  106. Block.Text = "Sprint"

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

  108. Block.TextScaled = true

  109. Block.TextSize = 14.000

  110. Block.TextWrapped = true

  111. Destroy.Name = "Destroy"

  112. Destroy.Parent = Main

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

  114. Destroy.BackgroundTransparency = 0.400

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

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

  117. Destroy.Font = Enum.Font.SourceSans

  118. Destroy.Text = "Destroy"

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

  120. Destroy.TextScaled = true

  121. Destroy.TextSize = 14.000

  122. Destroy.TextWrapped = true

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

  124. local player = game.Players.LocalPlayer

  125. local setting

  126. local serving

  127. local spiking

  128. local power

  129. local block

  130. local sprint

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

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

  133. v:Destroy()

  134. end

  135. end

  136. if dev then print(1) end

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

  138. local function lookAt(chr,target)

  139. if chr.PrimaryPart then

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

  141. chr:SetPrimaryPartCFrame(frame)

  142. end

  143. end

  144. local function lookAway(chr,target)

  145. if chr.PrimaryPart then

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

  147. chr:SetPrimaryPartCFrame(frame)

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

  149. end

  150. end

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

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

  153. function(char)

  154. mouse.TargetFilter = char

  155. end

  156. )

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

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

  159. v.Activated:Connect(function()

  160. -- Destroy

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

  162. if dev then print("Destroy") end

  163. ui:Destroy()

  164. end

  165. -- Setting

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

  167. if dev then print("Setting") end

  168. if setting then

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

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

  171. v:Destroy()

  172. end

  173. end

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

  175. setting = false

  176. return

  177. end

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

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

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

  181. left.Name = "Left"

  182. right.Name = "Right"

  183. left.Transparency = 1

  184. right.Transparency = 1

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

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

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

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

  189. left.CanCollide = false

  190. right.CanCollide = false

  191. left.Anchored = true

  192. right.Anchored = true

  193. left.Parent = workspace

  194. right.Parent = workspace

  195. setting = true

  196. end

  197. -- Serving

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

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

  200. if serving then

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

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

  203. v:Destroy()

  204. end

  205. end

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

  207. serving = false

  208. else

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

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

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

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

  213. redRCorner.Name = "RedRight"

  214. redLCorner.Name = "RedLeft"

  215. bluRCorner.Name = "RedRight"

  216. bluLCorner.Name = "RedLeft"

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

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

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

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

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

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

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

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

  225. redRCorner.Anchored = true

  226. redLCorner.Anchored = true

  227. bluRCorner.Anchored = true

  228. bluLCorner.Anchored = true

  229. redRCorner.CanCollide = false

  230. redLCorner.CanCollide = false

  231. bluRCorner.CanCollide = false

  232. bluRCorner.CanCollide = false

  233. redRCorner.Transparency = 1

  234. redLCorner.Transparency = 1

  235. bluRCorner.Transparency = 1

  236. bluRCorner.Transparency = 1

  237. redRCorner.Parent = workspace

  238. redLCorner.Parent = workspace

  239. bluRCorner.Parent = workspace

  240. bluLCorner.Parent = workspace

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

  242. serving = true

  243. end

  244. end

  245. -- Spiking

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

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

  248. if spiking then

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

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

  251. v:Destroy()

  252. end

  253. end

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

  255. spiking = false

  256. else

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

  258. redSpike.Name = "RedSpike"

  259. redSpike.Anchored = true

  260. redSpike.CanCollide = false

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

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

  263. redSpike.Transparency = 1

  264. redSpike.Parent = workspace

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

  266. bluSpike.Name = "RedSpike"

  267. bluSpike.Anchored = true

  268. bluSpike.CanCollide = false

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

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

  271. bluSpike.Transparency = 1

  272. bluSpike.Parent = workspace

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

  274. spiking = true

  275. end

  276. end

  277. -- Power

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

  279. if power then

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

  281. power = false

  282. else

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

  284. power = true

  285. end

  286. end

  287. -- Sprint

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

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

  290. if sprint then

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

  292. sprint = false

  293. else

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

  295. sprint = true

  296. end

  297. end

  298. end)

  299. end

  300. end

  301. -- inputs

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

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

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

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

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

  307. end

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

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

  310. lookAt(player.Character, left)

  311. else

  312. lookAt(player.Character, right)

  313. end

  314. end

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

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

  317. lookAway(player.Character, left)

  318. else

  319. lookAway(player.Character, right)

  320. end

  321. end

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

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

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

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

  326. if r == 1 then

  327. lookAt(player.Character, redRCorner)

  328. else

  329. lookAt(player.Character, redLCorner)

  330. end

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

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

  333. if r == 1 then

  334. lookAt(player.Character, bluRCorner)

  335. else

  336. lookAt(player.Character, bluLCorner)

  337. end

  338. else

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

  340. end

  341. end

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

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

  344. if block == true then return end

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

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

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

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

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

  350. rP.Anchored = true

  351. rP.Transparency = 1

  352. local range = 20

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

  354. rP.Parent = workspace

  355. lookAt(player.Character, rP)

  356. rP:Destroy()

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

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

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

  360. rP.Anchored = true

  361. rP.Transparency = 1

  362. local range = 20

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

  364. rP.Parent = workspace

  365. lookAt(player.Character, rP)

  366. rP:Destroy()

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

  368. end

  369. end

  370. if spikeMode == "point" then

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

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

  373. p.Anchored = true

  374. p.CanCollide = false

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

  376. p.Transparency = 1

  377. p.Parent = workspace

  378. lookAt(player.Character, p)

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

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

  381. p.Anchored = true

  382. p.CanCollide = false

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

  384. p.Transparency = 1

  385. p.Parent = workspace

  386. lookAt(player.Character, p)

  387. end

  388. end

  389. end

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

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

  392. end

  393. 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

  394. if sprint then

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

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

  397. task.wait(0.1)

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

  399. task.wait(0.1)

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

  401. end

  402. end

  403. end)

  404. --[[

  405. Setting - The setting mode auto aims towards the antennas on both sides when you set the ball using your forward and backwards set key.

  406. Serving - The serving mode aims randomly at the two far corners of your opponents court, allowing you to alwasy hit the corners with precise accuracy.

  407. Spiking - The spiking mode has two modes, the random mode aims randomly anywhere on the opponents court while the point mode aims where your mouse is pointed.

  408. Power - The power mode automatically sets your power to the maximum amount when you jump.

  409. Sprint - The sprint mode automatically hits your sprint key when you move.

  410. I am pretty new at making scripts so if you have any suggestions please reach out to me, thank you for using! sneaky#0168

  411. ]]--

Volleyball 4.2 by Sneaky - Pastebin.com (2024)

References

Top Articles
Latest Posts
Article information

Author: Arielle Torp

Last Updated:

Views: 6383

Rating: 4 / 5 (41 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Arielle Torp

Birthday: 1997-09-20

Address: 87313 Erdman Vista, North Dustinborough, WA 37563

Phone: +97216742823598

Job: Central Technology Officer

Hobby: Taekwondo, Macrame, Foreign language learning, Kite flying, Cooking, Skiing, Computer programming

Introduction: My name is Arielle Torp, I am a comfortable, kind, zealous, lovely, jolly, colorful, adventurous person who loves writing and wants to share my knowledge and understanding with you.