Advertisement
lafur

Untitled

Jun 26th, 2019
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1. wait()
  2. local repStorage = game:GetService("ReplicatedStorage")
  3. local Player = game:GetService("Players").LocalPlayer
  4. local Mouse = Player:GetMouse()
  5. local UIS = game:GetService("UserInputService")
  6. local Main = repStorage:WaitForChild("Main")
  7.  
  8. UIS.InputBegan:Connect(function(Input, GUIProcessed)
  9. if not GUIProcessed and Input.UserInputType == Enum.UserInputType.MouseButton1 then
  10. Main:FireServer("shoot", Mouse.Target)
  11. end
  12. if not GUIProcessed and Input.KeyCode == Enum.KeyCode.E then
  13. Main:FireServer("respawn")
  14. end
  15. if not GUIProcessed and Input.KeyCode == Enum.KeyCode.Q then
  16. Main:FireServer("mad")
  17. end
  18. if not GUIProcessed and Input.KeyCode == Enum.KeyCode.G then
  19. Main:FireServer("sans")
  20. end
  21. if not GUIProcessed and Input.KeyCode == Enum.KeyCode.F then
  22. print("Firing F")
  23. Main:FireServer("bone")
  24. end
  25. end)
  26.  
  27. UIS.InputEnded:Connect(function(Input, GUIProcessed)
  28. if not GUIProcessed and Input.KeyCode == Enum.KeyCode.F then
  29. print("Firing un F")
  30. Main:FireServer("unbone")
  31. end
  32. end)
  33.  
  34. while wait() do
  35. local char = workspace:WaitForChild("SouljaBoy")
  36. if char:FindFirstChild("Head") == nil then
  37. else
  38.  
  39. workspace.CurrentCamera.CameraSubject = char.Head
  40. end
  41. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement