local dev = true
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 debug then print("Destroy") end
ui:Destroy()
end
-- Setting
if v.Name == "Setting" then
if debug 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.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.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)
Volleyball 4.2 Script by Sneaky - Pastebin.com (2024)
References
Top Articles
Steve Zietlow Obituary
Koehn Brothers Funeral Home Obituaries Recipes with ingredients,nutritions,instructions and related recipes
Radical Red Ability Pill
Jefferson County Ky Pva
Balloons and airships, 1783-1973;: Editor of the English edition Kenneth Munson; (The pocket encyclopaedia of world aircraft in colour) - PDF Free Download
The Best And Worst Jobs At Costco - Mashed
Parks & Sons of Sun City - Dumpster Rental
living in Utrecht – Utrecht select
Richard Sambade Obituary
Finding the C4 sweet spot: cellular compartmentation of carbohydrate metabolism in C4 photosynthesis
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.