Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. localplayer = game.Players.LocalPlayer
  2. local enableKey = "q"
  3. local p = game.Players.LocalPlayer
  4. local mouse = p:GetMouse()
  5. local char = p.Character
  6. ool = false
  7. function onKeyPress(inputObject, gameProcessedEvent)
  8. if (gameProcessedEvent) then return nil end
  9. if inputObject.KeyCode == Enum.KeyCode.R and ool == false then------Plates-----
  10. -- local LocalPlayer = game:GetService("Players").LocalPlayer
  11. ool = true
  12. localplayer.Character.HumanoidRootPart.Anchored = true
  13.  
  14. elseif inputObject.KeyCode == Enum.KeyCode.R and ool == true then
  15.  
  16. ool = false
  17. localplayer.Character.HumanoidRootPart.Anchored = false
  18.  
  19. elseif inputObject.KeyCode == Enum.KeyCode.E then
  20. localplayer.Character.Humanoid.WalkSpeed = localplayer.Character.Humanoid.WalkSpeed * 2
  21.  
  22. elseif inputObject.KeyCode == Enum.KeyCode.Q then
  23. localplayer.Character.Humanoid.WalkSpeed = localplayer.Character.Humanoid.WalkSpeed / 2
  24. end
  25.  
  26. end
  27.  
  28. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  29. water = Instance.new("Part",workspace)
  30. water.Size = Vector3.new(1000.75, 451.36, 1000.69)
  31. water.CFrame = CFrame.new(41.12, 0.5, 3.37)
  32. water.Anchored = true
  33. water.CanCollide = false
  34. water.Locked = true
  35. water.Transparency = 1
  36. water.FormFactor = Enum.FormFactor.Custom
  37. water.Parent = script
  38.  
  39. workspace.Terrain.WaterTransparency = 1
  40.  
  41. workspace.Terrain:FillBlock(water.CFrame,water.Size,"Water")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement