Advertisement
Rufus14

Desert Eagle Script (LOCALSIDED)

Dec 21st, 2018
1,383
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 2.17 KB | None | 0 0
  1. --By Rufus14
  2. for i,v in pairs(game.ReplicatedStorage:GetChildren()) do
  3.     if v.Name == "DeagleShoot" or v.Name == "DeagleStart" or v.Name == "DeagleLook" or v.Name == "DeagleSuicide" then
  4.         v:destroy()
  5.     end
  6. end
  7. local RunTheServersided = Instance.new("ScreenGui")
  8. local Frame = Instance.new("Frame")
  9. local TextLabel = Instance.new("TextLabel")
  10. --Properties:
  11. RunTheServersided.Name = "RunTheServersided"
  12. RunTheServersided.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  13.  
  14. Frame.Parent = RunTheServersided
  15. Frame.BackgroundColor3 = Color3.new(0, 0, 0)
  16. Frame.BackgroundTransparency = 0.64999997615814
  17. Frame.Size = UDim2.new(1, 0, 1, 0)
  18.  
  19. TextLabel.Parent = Frame
  20. TextLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  21. TextLabel.BackgroundTransparency = 1
  22. TextLabel.Position = UDim2.new(0.427, 0, 0.427, 0)
  23. TextLabel.Size = UDim2.new(0, 464, 0, 117)
  24. TextLabel.Font = Enum.Font.SourceSans
  25. TextLabel.Text = "Run the serversided script now."
  26. TextLabel.TextColor3 = Color3.new(1, 1, 1)
  27. TextLabel.TextSize = 39
  28. mouse = game.Players.LocalPlayer:GetMouse()
  29. local deagleshoot = game.ReplicatedStorage:WaitForChild("DeagleShoot")
  30. local start = game.ReplicatedStorage:WaitForChild("DeagleStart")
  31. local look = game.ReplicatedStorage:WaitForChild("DeagleLook")
  32. local deaglekys = game.ReplicatedStorage:WaitForChild("DeagleSuicide")
  33. RunTheServersided:destroy()
  34. start:FireServer(game.Players.LocalPlayer)
  35. function shoot()
  36.     deagleshoot:FireServer(mouse.Hit.p)
  37. end
  38. mouse.Button1Down:connect(shoot)
  39. function die()
  40.     script:Remove()
  41. end
  42. game.Players.LocalPlayer.Character.Humanoid.Died:connect(die)
  43. function lookat()
  44.     game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(game.Players.LocalPlayer.Character.HumanoidRootPart.Position,Vector3.new(mouse.Hit.p.x,game.Players.LocalPlayer.Character.HumanoidRootPart.Position.y,mouse.Hit.p.z))
  45. end
  46. game:GetService("RunService").RenderStepped:connect(lookat)
  47. function kys(key)
  48.     key = key:lower()
  49.     if key == "q" then
  50.         deaglekys:FireServer()
  51.     end
  52. end
  53. mouse.KeyDown:connect(kys)
  54. while wait() do
  55.     look:FireServer(mouse.Hit.p, mouse.Origin.p)
  56.     if game.Players.LocalPlayer.Character.Parent == nil then
  57.         script:Remove()
  58.     end
  59. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement