Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.39 KB | None | 0 0
  1. local plr = game.Players.LocalPlayer
  2. local chr = plr.Character
  3.  
  4. -- Creating parts
  5. local PropertyGui = Instance.new("ScreenGui")
  6. local Main = Instance.new("Frame")
  7. local Title = Instance.new("TextLabel")
  8. local HipHeightButton = Instance.new("TextButton")
  9. local NumberVal = Instance.new("TextBox")
  10.  
  11. PropertyGui.Name = "PropertyGui"
  12. PropertyGui.ResetOnSpawn = false
  13. PropertyGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  14.  
  15. Main.Parent = PropertyGui
  16. Main.Size = UDim2.new(0,217,0,233)
  17. Main.Position = UDim2.new(0.702554762, 0, 0.446640313, 0)
  18. Main.Selectable = true
  19. Main.Active = true
  20. Main.Draggable = true
  21.  
  22. Title.Name = "Title"
  23. Title.BackgroundTransparency = 1
  24. Title.TextScaled = true
  25. Title.Font = "Code"
  26. Title.Text = "Player Property Gui"
  27. Title.Parent = Main
  28. Title.Position = UDim2.new(0,0,0,0)
  29. Title.Size = UDim2.new(0,217,0,25)
  30.  
  31. HipHeightButton.Name = "HipHeight"
  32. HipHeightButton.BackgroundColor3 = Color3.fromRGB(0,0,0)
  33. HipHeightButton.Size = UDim2.new(0,200,0,25)
  34. HipHeightButton.Position = UDim2.new(0.037,0,0.159,0)
  35. HipHeightButton.Font = "Code"
  36. HipHeightButton.Text = "HipHeight"
  37. HipHeightButton.TextColor3 = Color3.fromRGB(255,255,255)
  38. HipHeightButton.TextScaled = true
  39. HipHeightButton.Parent = Main
  40.  
  41. NumberVal.Name = "Number"
  42. NumberVal.Position = UDim2.new(0.037,0,0.858,0)
  43. NumberVal.Size = UDim2.new(0,200,0,25)
  44. NumberVal.PlaceholderText = "Enter number value here..."
  45. NumberVal.TextScaled = true
  46. NumberVal.Text = " "
  47. NumberVal.Parent = Main
  48.  
  49. -- Jump Height
  50. local JumpHeight = HipHeightButton:Clone()
  51. JumpHeight.Name = "JumpHeight"
  52. JumpHeight.Position = UDim2.new(0.037,0,0.3,0)
  53. JumpHeight.Text = "JumpPower"
  54. JumpHeight.Parent = Main
  55.  
  56. -- Walk Speed
  57. local WalkSpeed = JumpHeight:Clone()
  58. WalkSpeed.Name = "WalkSpeed"
  59. WalkSpeed.Position = UDim2.new(0.032,0,0.446,0)
  60. WalkSpeed.Text = "WalkSpeed"
  61. WalkSpeed.Parent = Main
  62.  
  63. -- Sit
  64. local Sit = WalkSpeed:Clone()
  65. Sit.Name = "Sit"
  66. Sit.Position = UDim2.new(0.037,0,0.588,0)
  67. Sit.Text = "Sit"
  68. Sit.Parent = Main
  69.  
  70.  
  71.  
  72. HipHeightButton.MouseButton1Click:Connect(function()
  73. chr.Humanoid.HipHeight = tonumber(NumberVal.Text)
  74. end)
  75.  
  76. JumpHeight.MouseButton1Click:Connect(function()
  77. chr.Humanoid.JumpPower = tonumber(NumberVal.Text)
  78. end)
  79.  
  80. WalkSpeed.MouseButton1Click:Connect(function()
  81. chr.Humanoid.WalkSpeed = tonumber(NumberVal.Text)
  82. end)
  83.  
  84. Sit.MouseButton1Click:Connect(function()
  85. chr.Humanoid.Sit = true
  86. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement