marcelslibrary

setsus

Apr 12th, 2019
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.18 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local suspension = Instance.new("ScreenGui")
  5. local setsuspensiongui = Instance.new("Frame")
  6. local Frame = Instance.new("Frame")
  7. local Frame_2 = Instance.new("Frame")
  8. local setheight = Instance.new("TextButton")
  9. local amount = Instance.new("TextBox")
  10. local exit = Instance.new("TextButton")
  11. --Properties:
  12. suspension.Name = "suspension"
  13. suspension.Parent = game.CoreGui
  14. suspension.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  15.  
  16. setsuspensiongui.Name = "setsuspensiongui"
  17. setsuspensiongui.Parent = suspension
  18. setsuspensiongui.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  19. setsuspensiongui.BackgroundTransparency = 0.03999999910593
  20. setsuspensiongui.Position = UDim2.new(1, 0, 0.128000006, 0)
  21. setsuspensiongui.Size = UDim2.new(0, 214, 0, 182)
  22.  
  23. Frame.Parent = setsuspensiongui
  24. Frame.BackgroundColor3 = Color3.new(0.333333, 0, 1)
  25. Frame.BackgroundTransparency = 0.03999999910593
  26. Frame.BorderSizePixel = 0
  27. Frame.Size = UDim2.new(0, 214, 0, 20)
  28.  
  29. Frame_2.Parent = setsuspensiongui
  30. Frame_2.BackgroundColor3 = Color3.new(0.333333, 0, 1)
  31. Frame_2.BackgroundTransparency = 0.03999999910593
  32. Frame_2.BorderSizePixel = 0
  33. Frame_2.Position = UDim2.new(0, 0, 0.883977771, 0)
  34. Frame_2.Size = UDim2.new(0, 214, 0, 21)
  35.  
  36. setheight.Name = "setheight"
  37. setheight.Parent = setsuspensiongui
  38. setheight.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  39. setheight.BackgroundTransparency = 0.03999999910593
  40. setheight.BorderColor3 = Color3.new(0.333333, 0, 1)
  41. setheight.Position = UDim2.new(0.130841121, 0, 0.649760544, 0)
  42. setheight.Size = UDim2.new(0, 156, 0, 31)
  43. setheight.Font = Enum.Font.GothamBold
  44. setheight.Text = "Set Height"
  45. setheight.TextColor3 = Color3.new(0.333333, 0, 1)
  46. setheight.TextSize = 14
  47.  
  48. amount.Name = "amount"
  49. amount.Parent = setsuspensiongui
  50. amount.BackgroundColor3 = Color3.new(0.0784314, 0.0784314, 0.0784314)
  51. amount.BackgroundTransparency = 0.03999999910593
  52. amount.BorderColor3 = Color3.new(0.333333, 0, 1)
  53. amount.Position = UDim2.new(0.0607476644, 0, 0.273494005, 0)
  54. amount.Size = UDim2.new(0, 186, 0, 37)
  55. amount.Font = Enum.Font.GothamBold
  56. amount.Text = "Set amount 0-10"
  57. amount.TextColor3 = Color3.new(0.333333, 0, 1)
  58. amount.TextSize = 14
  59.  
  60. exit.Name = "exit"
  61. exit.Parent = setsuspensiongui
  62. exit.BackgroundColor3 = Color3.new(1, 1, 1)
  63. exit.BackgroundTransparency = 1
  64. exit.BorderSizePixel = 0
  65. exit.Position = UDim2.new(0.869158924, 0, 0.107574642, 0)
  66. exit.Size = UDim2.new(0, 28, 0, 28)
  67. exit.Font = Enum.Font.SourceSans
  68. exit.Text = "X"
  69. exit.TextColor3 = Color3.new(0.333333, 0, 1)
  70. exit.TextSize = 25
  71. -- Scripts:
  72. setsuspensiongui.Active = true
  73. setsuspensiongui.Draggable = true
  74.  
  75. setsuspensiongui:TweenPosition(UDim2.new(0.494, 0,0.128, 0),'Out','Sine',1)
  76. setsuspensiongui.Active = true
  77. setsuspensiongui.Draggable = true
  78.  
  79.  
  80.  
  81. exit.MouseButton1Click:connect(function()
  82. setsuspensiongui:TweenPosition(UDim2.new(1, 0,0.128, 0),'Out','Sine',1)
  83. wait(1)
  84. suspension:Destroy()
  85. end)
  86.  
  87.  
  88. setheight.MouseButton1Click:connect(function()
  89. local am = amount.Text
  90. local veh = game.workspace.ObjectSelection:FindFirstChild(game.Players.LocalPlayer.Name.."'s Vehicle")
  91. veh.CarChassis.Suspension.Value = am
  92. end)
Advertisement
Add Comment
Please, Sign In to add comment