Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- localplayer = game.Players.LocalPlayer
- local enableKey = "q"
- local p = game.Players.LocalPlayer
- local mouse = p:GetMouse()
- local char = p.Character
- ool = false
- function onKeyPress(inputObject, gameProcessedEvent)
- if (gameProcessedEvent) then return nil end
- if inputObject.KeyCode == Enum.KeyCode.R and ool == false then------Plates-----
- -- local LocalPlayer = game:GetService("Players").LocalPlayer
- ool = true
- localplayer.Character.HumanoidRootPart.Anchored = true
- elseif inputObject.KeyCode == Enum.KeyCode.R and ool == true then
- ool = false
- localplayer.Character.HumanoidRootPart.Anchored = false
- elseif inputObject.KeyCode == Enum.KeyCode.E then
- localplayer.Character.Humanoid.WalkSpeed = localplayer.Character.Humanoid.WalkSpeed * 2
- elseif inputObject.KeyCode == Enum.KeyCode.Q then
- localplayer.Character.Humanoid.WalkSpeed = localplayer.Character.Humanoid.WalkSpeed / 2
- end
- end
- game:GetService("UserInputService").InputBegan:connect(onKeyPress)
- water = Instance.new("Part",workspace)
- water.Size = Vector3.new(1000.75, 451.36, 1000.69)
- water.CFrame = CFrame.new(41.12, 0.5, 3.37)
- water.Anchored = true
- water.CanCollide = false
- water.Locked = true
- water.Transparency = 1
- water.FormFactor = Enum.FormFactor.Custom
- water.Parent = script
- workspace.Terrain.WaterTransparency = 1
- workspace.Terrain:FillBlock(water.CFrame,water.Size,"Water")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement