skinkillaz

my first GUI

Jul 9th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.24 KB | None | 0 0
  1. local KnifeSimGui = Instance.new("ScreenGui")
  2. local Frame = Instance.new("Frame")
  3. local GuiCredits = Instance.new("TextLabel")
  4. local TpKill = Instance.new("TextButton")
  5. local SpeedAndJump = Instance.new("TextButton")
  6. local Reset = Instance.new("TextButton")
  7.  
  8. KnifeSimGui.Name = "KnifeSimGui"
  9. KnifeSimGui.Parent = game.Players.LocalPlayer.PlayerGui
  10.  
  11. Frame.Parent = KnifeSimGui
  12. Frame.BackgroundColor3 = Color3.new(1, 1, 1)
  13. Frame.Position = UDim2.new(0.351212353, 0, 0.795966804, 0)
  14. Frame.Size = UDim2.new(0, 328, 0, 111)
  15. Frame.Style = Enum.FrameStyle.RobloxSquare
  16.  
  17. GuiCredits.Name = "GuiCredits"
  18. GuiCredits.Parent = Frame
  19. GuiCredits.BackgroundColor3 = Color3.new(1, 1, 1)
  20. GuiCredits.BackgroundTransparency = 1
  21. GuiCredits.BorderSizePixel = 0
  22. GuiCredits.Position = UDim2.new(-0.0426829271, 0, 0.805555582, 0)
  23. GuiCredits.Size = UDim2.new(0, 200, 0, 20)
  24. GuiCredits.Font = Enum.Font.SourceSansBold
  25. GuiCredits.Text = "Gui Created by: Xcrossy"
  26. GuiCredits.TextColor3 = Color3.new(1, 1, 1)
  27. GuiCredits.TextScaled = true
  28. GuiCredits.TextSize = 14
  29. GuiCredits.TextWrapped = true
  30.  
  31. TpKill.Name = "TpKill"
  32. TpKill.Parent = Frame
  33. TpKill.BackgroundColor3 = Color3.new(0, 1, 0.498039)
  34. TpKill.Position = UDim2.new(0.234756097, 0, 0, 0)
  35. TpKill.Size = UDim2.new(0, 163, 0, 30)
  36. TpKill.Font = Enum.Font.SourceSans
  37. TpKill.Text = "TP KILL"
  38. TpKill.TextColor3 = Color3.new(0, 0, 0)
  39. TpKill.TextScaled = true
  40. TpKill.TextSize = 14
  41. TpKill.TextWrapped = true
  42.  
  43. SpeedAndJump.Name = "SpeedAndJump"
  44. SpeedAndJump.Parent = Frame
  45. SpeedAndJump.BackgroundColor3 = Color3.new(0, 1, 0.498039)
  46. SpeedAndJump.BorderColor3 = Color3.new(0, 1, 0.498039)
  47. SpeedAndJump.Position = UDim2.new(0.234756097, 0, 0.444444448, 0)
  48. SpeedAndJump.Size = UDim2.new(0, 163, 0, 30)
  49. SpeedAndJump.Font = Enum.Font.SourceSans
  50. SpeedAndJump.Text = "Speed + jump power"
  51. SpeedAndJump.TextColor3 = Color3.new(0, 0, 0)
  52. SpeedAndJump.TextScaled = true
  53. SpeedAndJump.TextSize = 14
  54. SpeedAndJump.TextWrapped = true
  55.  
  56. Reset.Name = "Reset"
  57. Reset.Parent = Frame
  58. Reset.BackgroundColor3 = Color3.new(0, 1, 0.498039)
  59. Reset.BorderColor3 = Color3.new(0, 1, 0.498039)
  60. Reset.BorderSizePixel = 0
  61. Reset.Position = UDim2.new(0.795731723, 0, 0.00900901109, 0)
  62. Reset.Size = UDim2.new(0, 43, 0, 72)
  63. Reset.Font = Enum.Font.SourceSans
  64. Reset.Text = "Reset Jump and speed"
  65. Reset.TextColor3 = Color3.new(0, 0, 0)
  66. Reset.TextScaled = true
  67. Reset.TextSize = 14
  68. Reset.TextWrapped = true
  69.  
  70. KnifeSimGui.ResetOnSpawn = false
  71.  
  72.  
  73. SpeedAndJump.MouseButton1Click:connect(function()
  74. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 80
  75. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 150
  76. end)
  77.  
  78. Reset.MouseButton1Click:connect(function()
  79. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
  80. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50
  81. end)
  82.  
  83. TpKill.MouseButton1Click:connect(function()
  84. for i,v in pairs(game:GetService'Players':GetPlayers()) do
  85. if v.Name ~= game:GetService'Players'.LocalPlayer.Name then
  86. repeat
  87. wait(0.15)
  88. game:GetService'Players'.LocalPlayer.Character.HumanoidRootPart.CFrame = v.Character.HumanoidRootPart.CFrame
  89. game:GetService'Players'.LocalPlayer.Character:FindFirstChildOfClass'Tool':Activate()
  90. until v.Character.Humanoid.Health == 0
  91. end
  92. end
  93. end)
Add Comment
Please, Sign In to add comment