--[[
Thank you for using Volleyball 4.2 by Sneaky! :D
A couple of things to be aware of while using this GUI:
- Execute the script in Spike Mode
- Some elements of the GUI will only work while on a team, such as serving, spiking, and setting
- Make sure to change the keybind settings below
- This script is made for the Synapse X injector but may work for others
- For detailed information on what each mode does, refer to the bottom of this script
- Have fun :)
--]]
-- Settings you can change:
local setForward = "f" -- Your set forward keybind (DEFAULT: F)
local setBackwards = "r" -- Your set backwards keybind (DEFAULT: R)
local spikeMode = "random" -- "random" will aim randomly, "point" will aim where your mouse is
local changeMode = "One" -- Your keybind that switches between block mode and spike mode (DEFAULT: One)
local maxPower = "c" -- Your keybind that sets your max power (DEFAULT: C)
local jump = "Space" -- Your keybind to jump (DEFAULT: Space)
local sprintKey = "t" -- Your keybind to sprint (DEFAULT: T)
local dev = false
local Volleyball42 = Instance.new("ScreenGui")
local Main = Instance.new("Frame")
local UICorner = Instance.new("UICorner")
local TextLabel = Instance.new("TextLabel")
local Setting = Instance.new("TextButton")
local Serving = Instance.new("TextButton")
local Receives = Instance.new("TextButton")
local Power = Instance.new("TextButton")
local Block = Instance.new("TextButton")
local Destroy = Instance.new("TextButton")
Volleyball42.Name = "Volleyball42"
Volleyball42.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
Volleyball42.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
Main.Name = "Main"
Main.Parent = Volleyball42
Main.BackgroundColor3 = Color3.fromRGB(104, 104, 104)
Main.Position = UDim2.new(0.428033143, 0, 0.309200615, 0)
Main.Size = UDim2.new(0, 283, 0, 159)
Main.Active = true
Main.Draggable = true
UICorner.Parent = Main
TextLabel.Parent = Main
TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextLabel.BackgroundTransparency = 1.000
TextLabel.Size = UDim2.new(0, 283, 0, 26)
TextLabel.Font = Enum.Font.Oswald
TextLabel.Text = "Volleyball 4.2 by Sneaky"
TextLabel.TextColor3 = Color3.fromRGB(0, 0, 0)
TextLabel.TextScaled = true
TextLabel.TextSize = 14.000
TextLabel.TextWrapped = true
Setting.Name = "Setting"
Setting.Parent = Main
Setting.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Setting.BackgroundTransparency = 0.400
Setting.Position = UDim2.new(0.0494699515, 0, 0.207547188, 0)
Setting.Size = UDim2.new(0, 121, 0, 34)
Setting.Font = Enum.Font.SourceSans
Setting.Text = "Setting"
Setting.TextColor3 = Color3.fromRGB(255, 255, 255)
Setting.TextScaled = true
Setting.TextSize = 14.000
Setting.TextWrapped = true
Serving.Name = "Serving"
Serving.Parent = Main
Serving.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Serving.BackgroundTransparency = 0.400
Serving.Position = UDim2.new(0.0494699515, 0, 0.465408802, 0)
Serving.Size = UDim2.new(0, 121, 0, 34)
Serving.Font = Enum.Font.SourceSans
Serving.Text = "Serving"
Serving.TextColor3 = Color3.fromRGB(255, 255, 255)
Serving.TextScaled = true
Serving.TextSize = 14.000
Serving.TextWrapped = true
Receives.Name = "Spiking"
Receives.Parent = Main
Receives.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Receives.BackgroundTransparency = 0.400
Receives.Position = UDim2.new(0.0494699515, 0, 0.729559779, 0)
Receives.Size = UDim2.new(0, 121, 0, 34)
Receives.Font = Enum.Font.SourceSans
Receives.Text = "Spiking"
Receives.TextColor3 = Color3.fromRGB(255, 255, 255)
Receives.TextScaled = true
Receives.TextSize = 14.000
Receives.TextWrapped = true
Power.Name = "Power"
Power.Parent = Main
Power.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Power.BackgroundTransparency = 0.400
Power.Position = UDim2.new(0.526501775, 0, 0.207547188, 0)
Power.Size = UDim2.new(0, 121, 0, 34)
Power.Font = Enum.Font.SourceSans
Power.Text = "Power"
Power.TextColor3 = Color3.fromRGB(255, 255, 255)
Power.TextScaled = true
Power.TextSize = 14.000
Power.TextWrapped = true
Block.Name = "Sprint"
Block.Parent = Main
Block.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Block.BackgroundTransparency = 0.400
Block.Position = UDim2.new(0.526501775, 0, 0.465408802, 0)
Block.Size = UDim2.new(0, 121, 0, 34)
Block.Font = Enum.Font.SourceSans
Block.Text = "Sprint"
Block.TextColor3 = Color3.fromRGB(255, 255, 255)
Block.TextScaled = true
Block.TextSize = 14.000
Block.TextWrapped = true
Destroy.Name = "Destroy"
Destroy.Parent = Main
Destroy.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
Destroy.BackgroundTransparency = 0.400
Destroy.Position = UDim2.new(0.526501775, 0, 0.729559779, 0)
Destroy.Size = UDim2.new(0, 121, 0, 34)
Destroy.Font = Enum.Font.SourceSans
Destroy.Text = "Destroy"
Destroy.TextColor3 = Color3.fromRGB(170, 0, 0)
Destroy.TextScaled = true
Destroy.TextSize = 14.000
Destroy.TextWrapped = true
local UserInputService = game:GetService("UserInputService")
local player = game.Players.LocalPlayer
local setting
local serving
local spiking
local power
local block
local sprint
for i, v in pairs(workspace:GetChildren()) do
if v:IsA("Part") and not v:IsA("Camera") and v.Transparency == 1 and not v.Name == "Net" then
v:Destroy()
end
end
if dev then print(1) end
local ui = player:WaitForChild("PlayerGui"):WaitForChild("Volleyball42")
local function lookAt(chr,target)
if chr.PrimaryPart then
local frame = CFrame.new(chr.PrimaryPart.Position, target.Position)
chr:SetPrimaryPartCFrame(frame)
end
end
local function lookAway(chr,target)
if chr.PrimaryPart then
local frame = CFrame.new(chr.PrimaryPart.Position, target.Position)
chr:SetPrimaryPartCFrame(frame)
chr.HumanoidRootPart.CFrame *= CFrame.Angles(0, math.rad(180), 0)
end
end
local mouse = game.Players.LocalPlayer:GetMouse()
game.Players.LocalPlayer.CharacterAdded:connect(
function(char)
mouse.TargetFilter = char
end
)
for i, v in pairs(ui.Main:GetChildren()) do
if v:IsA("TextButton") then
v.Activated:Connect(function()
-- Destroy
if v.Name == "Destroy" then
if dev then print("Destroy") end
ui:Destroy()
end
-- Setting
if v.Name == "Setting" then
if dev then print("Setting") end
if setting then
for i, v in pairs(workspace:GetChildren()) do
if v.Name == "Left" or v.Name == "Right" then
v:Destroy()
end
end
ui:WaitForChild("Main").Setting.TextColor = BrickColor.new("White")
setting = false
return
end
ui:WaitForChild("Main").Setting.TextColor = BrickColor.new("Bright green")
left = Instance.new("Part")
right = Instance.new("Part")
left.Name = "Left"
right.Name = "Right"
left.Transparency = 1
right.Transparency = 1
left.Position = Vector3.new(-23.789, 8, 0.007)
right.Position = Vector3.new(23.783, 8, -0.006)
left.Size = Vector3.new(1.607, 1, 2)
right.Size = Vector3.new(1.607, 1, 2)
left.CanCollide = false
right.CanCollide = false
left.Anchored = true
right.Anchored = true
left.Parent = workspace
right.Parent = workspace
setting = true
end
-- Serving
if v.Name == "Serving" then
if debug then print("Serving") end
if serving then
for i, v in pairs(workspace:GetChildren()) do
if v.Name == "RedRight" or v.Name == "RedLeft" then
v:Destroy()
end
end
ui:WaitForChild("Main").Serving.TextColor = BrickColor.new("White")
serving = false
else
redRCorner = Instance.new("Part")
redLCorner = Instance.new("Part")
bluRCorner = Instance.new("Part")
bluLCorner = Instance.new("Part")
redRCorner.Name = "RedRight"
redLCorner.Name = "RedLeft"
bluRCorner.Name = "RedRight"
bluLCorner.Name = "RedLeft"
redRCorner.Position = Vector3.new(23.479, 0.638, -47.059)
redLCorner.Position = Vector3.new(-23.577, 0.633, -47.059)
bluRCorner.Position = Vector3.new(-23.577, 0.633, 46.936)
bluLCorner.Position = Vector3.new(23.483, 0.628, 46.936)
redRCorner.Size = Vector3.new(1.048, 0.076, 1.07)
redLCorner.Size = Vector3.new(1.048, 0.076, 1.07)
bluRCorner.Size = Vector3.new(1.048, 0.076, 1.07)
bluLCorner.Size = Vector3.new(1.048, 0.076, 1.07)
redRCorner.Anchored = true
redLCorner.Anchored = true
bluRCorner.Anchored = true
bluLCorner.Anchored = true
redRCorner.CanCollide = false
redLCorner.CanCollide = false
bluRCorner.CanCollide = false
bluRCorner.CanCollide = false
redRCorner.Transparency = 1
redLCorner.Transparency = 1
bluRCorner.Transparency = 1
bluRCorner.Transparency = 1
redRCorner.Parent = workspace
redLCorner.Parent = workspace
bluRCorner.Parent = workspace
bluLCorner.Parent = workspace
ui:WaitForChild("Main").Serving.TextColor = BrickColor.new("Bright green")
serving = true
end
end
-- Spiking
if v.Name == "Spiking" then
if debug then print("Spiking") end
if spiking then
for i, v in pairs(workspace:GetChildren()) do
if v.Name == "RedSpike" or v.Name == "bluSpike" then
v:Destroy()
end
end
ui:WaitForChild("Main").Spiking.TextColor = BrickColor.new("White")
spiking = false
else
redSpike = Instance.new("Part")
redSpike.Name = "RedSpike"
redSpike.Anchored = true
redSpike.CanCollide = false
redSpike.Position = Vector3.new(-0.009, 0.501, -23.927)
redSpike.Size = Vector3.new(47.936, 0.001, 46.988)
redSpike.Transparency = 1
redSpike.Parent = workspace
bluSpike = Instance.new("Part")
bluSpike.Name = "RedSpike"
bluSpike.Anchored = true
bluSpike.CanCollide = false
bluSpike.Position = Vector3.new(-0.009, 0.501, 23.984)
bluSpike.Size = Vector3.new(47.936, 0.001, 46.988)
bluSpike.Transparency = 1
bluSpike.Parent = workspace
ui:WaitForChild("Main").Spiking.TextColor = BrickColor.new("Bright green")
spiking = true
end
end
-- Power
if v.Name == "Power" then
if power then
ui:WaitForChild("Main").Power.TextColor = BrickColor.new("White")
power = false
else
ui:WaitForChild("Main").Power.TextColor = BrickColor.new("Bright green")
power = true
end
end
-- Sprint
if v.Name == "Sprint" then
if dev then print("Sprint") end
if sprint then
ui:WaitForChild("Main").Sprint.TextColor = BrickColor.new("White")
sprint = false
else
ui:WaitForChild("Main").Sprint.TextColor = BrickColor.new("Bright green")
sprint = true
end
end
end)
end
end
-- inputs
if dev then print("setting uis to be done") end
UserInputService.InputBegan:Connect(function(input, event)
if input.KeyCode == Enum.KeyCode[jump] and power then
local N=game:GetService("VirtualInputManager")
N:SendKeyEvent(true,string.upper(maxPower),false,game)
end
if input.KeyCode == Enum.KeyCode[string.upper(setForward)] and setting then
if player.TeamColor == BrickColor.new("Really blue") then
lookAt(player.Character, left)
else
lookAt(player.Character, right)
end
end
if input.KeyCode == Enum.KeyCode[string.upper(setBackwards)] and setting then
if player.TeamColor == BrickColor.new("Really red") then
lookAway(player.Character, left)
else
lookAway(player.Character, right)
end
end
if input.KeyCode == Enum.KeyCode[jump] and serving then
if debug then print("Jump") end
if player.Character.UpperTorso.Position.Z > 40 and player.TeamColor == BrickColor.new("Really blue") then
local r = math.random(1, 2)
if r == 1 then
lookAt(player.Character, redRCorner)
else
lookAt(player.Character, redLCorner)
end
elseif player.Character.UpperTorso.Position.Z < -40 and player.TeamColor == BrickColor.new("Really red") then
local r = math.random(1, 2)
if r == 1 then
lookAt(player.Character, bluRCorner)
else
lookAt(player.Character, bluLCorner)
end
else
if debug then print("False") end
end
end
if input.KeyCode == Enum.KeyCode[jump] and spiking then
if debug then print("Jump") end
if block == true then return end
if spikeMode == "random" or nil then
local aimPart = Instance.new("Part")
aimPart.Size = Vector3.new(0.318, 0.001, 0.472)
if player.TeamColor == BrickColor.new("Really blue") and player.Character.UpperTorso.Position.Z < 40 then
local rP = Instance.new("Part")
rP.Anchored = true
rP.Transparency = 1
local range = 20
rP.Position = redSpike.Position + Vector3.new(math.random(-range,range),10,math.random(-range,range))
rP.Parent = workspace
lookAt(player.Character, rP)
rP:Destroy()
if debug then print("Random part made") end
elseif player.TeamColor == BrickColor.new("Really red") and player.Character.UpperTorso.Position.Z > -40 then
local rP = Instance.new("Part")
rP.Anchored = true
rP.Transparency = 1
local range = 20
rP.Position = bluSpike.Position + Vector3.new(math.random(-range,range),10,math.random(-range,range))
rP.Parent = workspace
lookAt(player.Character, rP)
rP:Destroy()
if debug then print("Random part made") end
end
end
if spikeMode == "point" then
if player.TeamColor == BrickColor.new("Really blue") and player.Character.UpperTorso.Position.Z < 40 then
local p = Instance.new("Part")
p.Anchored = true
p.CanCollide = false
p.CFrame = CFrame.new(mouse.Hit.X, 10, mouse.Hit.Z)
p.Transparency = 1
p.Parent = workspace
lookAt(player.Character, p)
elseif player.TeamColor == BrickColor.new("Really red") and player.Character.UpperTorso.Position.Z > -40 then
local p = Instance.new("Part")
p.Anchored = true
p.CanCollide = false
p.CFrame = CFrame.new(mouse.Hit.X, 10, mouse.Hit.Z)
p.Transparency = 1
p.Parent = workspace
lookAt(player.Character, p)
end
end
end
if input.KeyCode == Enum.KeyCode[changeMode] then
if block then block = false else block = true end
end
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
if sprint then
local N=game:GetService("VirtualInputManager")
N:SendKeyEvent(true,string.upper(sprintKey),false,game)
task.wait(0.1)
N:SendKeyEvent(true,string.upper(sprintKey),false,game)
task.wait(0.1)
N:SendKeyEvent(true,string.upper(sprintKey),false,game)
end
end
end)
--[[
Setting - The setting mode auto aims towards the antennas on both sides when you set the ball using your forward and backwards set key.
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.
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.
Power - The power mode automatically sets your power to the maximum amount when you jump.
Sprint - The sprint mode automatically hits your sprint key when you move.
I am pretty new at making scripts so if you have any suggestions please reach out to me, thank you for using! sneaky#0168
]]--
Volleyball 4.2 by Sneaky - Pastebin.com (2024)
References
Top Articles
"I'm Basically Living In A Fancy Prison"—Twitch Streamer Amouranth Says Her Husband Has Been "Abusive," Forcing Her To Stream And Controlling Her Finances
Paylocity Review (2023): Pricing, Features, Pros and Cons
Toledo OH Real Estate - Toledo OH Homes For Sale | Zillow
Nicolle Wallace Plans to Expand Beyond MSNBC Politics With Streaming Series
Cardi B - Twerk Lyrics
New LCD FHD Cable 01ER028 Spare Part for Lenovo Thinkpad T570 p51S T580 P52S FHD • EUR 10,89
Power Outage Map Albany Ny
Goodwill Poughkeepsie
Ash's Fire-Type Pokémon All Have One Weird Thing In Common
Pokémon Scarlet & Violet: Starter Evolutions, Explained
Cart Shipping Processing Info | Carol Wright
Keir Starmer: From indie kid to prime minister
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.