Advertisement
Hellotop2

Untitled

Feb 9th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.99 KB | None | 0 0
  1. wait(1)
  2. -- Objects
  3.  
  4. local JailbreakBypass = Instance.new("ScreenGui")
  5. local Back_ground = Instance.new("Frame")
  6. local speed_button = Instance.new("TextButton")
  7. local gravity_button = Instance.new("TextButton")
  8. local ver_sion = Instance.new("TextLabel")
  9.  
  10. -- Properties
  11.  
  12. JailbreakBypass.Name = "JailbreakBypass"
  13. JailbreakBypass.Parent = game.CoreGui
  14. JailbreakBypass.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  15.  
  16. Back_ground.Name = "Back_ground"
  17. Back_ground.Parent = JailbreakBypass
  18. Back_ground.BackgroundColor3 = Color3.new(0.247059, 0.247059, 0.247059)
  19. Back_ground.BorderSizePixel = 0
  20. Back_ground.Position = UDim2.new(0.334793478, 0, 0.465301484, 0)
  21. Back_ground.Size = UDim2.new(0, 313, 0, 133)
  22.  
  23. speed_button.Name = "speed_button"
  24. speed_button.Parent = Back_ground
  25. speed_button.BackgroundColor3 = Color3.new(0.247059, 0.247059, 0.247059)
  26. speed_button.BorderSizePixel = 0
  27. speed_button.Position = UDim2.new(0.0990415365, 0, 0.353383452, 0)
  28. speed_button.Size = UDim2.new(0, 114, 0, 38)
  29. speed_button.Font = Enum.Font.SourceSansLight
  30. speed_button.Text = "Speed"
  31. speed_button.TextColor3 = Color3.new(1, 1, 1)
  32. speed_button.TextScaled = true
  33. speed_button.TextSize = 14
  34. speed_button.TextWrapped = true
  35.  
  36. gravity_button.Name = "gravity_button"
  37. gravity_button.Parent = Back_ground
  38. gravity_button.BackgroundColor3 = Color3.new(0.247059, 0.247059, 0.247059)
  39. gravity_button.BorderSizePixel = 0
  40. gravity_button.Position = UDim2.new(0.536741197, 0, 0.353383452, 0)
  41. gravity_button.Size = UDim2.new(0, 114, 0, 38)
  42. gravity_button.Font = Enum.Font.SourceSansLight
  43. gravity_button.Text = "Gravity"
  44. gravity_button.TextColor3 = Color3.new(1, 1, 1)
  45. gravity_button.TextScaled = true
  46. gravity_button.TextSize = 14
  47. gravity_button.TextWrapped = true
  48.  
  49. ver_sion.Name = "ver_sion"
  50. ver_sion.Parent = Back_ground
  51. ver_sion.BackgroundColor3 = Color3.new(1, 1, 1)
  52. ver_sion.BackgroundTransparency = 1
  53. ver_sion.Position = UDim2.new(0, 0, 0.812030077, 0)
  54. ver_sion.Size = UDim2.new(0, 108, 0, 25)
  55. ver_sion.Font = Enum.Font.SourceSansLight
  56. ver_sion.Text = "v0.0.1"
  57. ver_sion.TextColor3 = Color3.new(0, 0, 0)
  58. ver_sion.TextScaled = true
  59. ver_sion.TextSize = 14
  60. ver_sion.TextWrapped = true
  61. ver_sion.TextXAlignment = Enum.TextXAlignment.Left
  62. speed_button.MouseButton1Click:connect(function()
  63. _G.WS = 100;
  64. local Humanoid = game:GetService("Players").LocalPlayer.Character.Humanoid;
  65. Humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
  66. Humanoid.WalkSpeed = _G.WS;
  67. end)
  68. Humanoid.WalkSpeed = _G.WS;
  69. end)
  70. gravity_button.MouseButton1Click:connect(function()
  71. workspace.Gravity = 42
  72. end)
  73. local UserInputService,gui,dragging,dragInput,dragStart,startPos = game:GetService("UserInputService"),Back_ground
  74.  
  75. local function update(input)
  76. local delta = input.Position - dragStart
  77. gui.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  78. end
  79.  
  80. gui.InputBegan:Connect(function(input)
  81. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  82. dragging = true
  83. dragStart = input.Position
  84. startPos = gui.Position
  85.  
  86. input.Changed:Connect(function()
  87. if input.UserInputState == Enum.UserInputState.End then
  88. dragging = false
  89. end
  90. end)
  91. end
  92. end)
  93.  
  94. gui.InputChanged:Connect(function(input)
  95. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  96. dragInput = input
  97. end
  98. end)
  99.  
  100. UserInputService.InputChanged:Connect(function(input)
  101. if input == dragInput and dragging then
  102. update(input)
  103. end
  104. end)
  105. while true do
  106. wait(2)
  107. -- MADE BY KAMOV
  108. -- Put this script into GUI element, you want to change color of
  109.  
  110. function TweenColor3(Object, Target, Time) -- [Object -> Selected element] [Target -> Color you want to get] [Time - Time length of loop]
  111. local CurrentColor3 = Object.BackgroundColor3 -- gets current color
  112. local Current_red = CurrentColor3.r -- gets value of red
  113. local Current_green = CurrentColor3.g -- gets value of green
  114. local Current_blue = CurrentColor3.b -- gets value of blue
  115.  
  116. local Frames = Time * 60 -- 60 frames per second
  117. local TimeFrame = Time / Frames -- seconds per frame
  118.  
  119. local Target_red = Target.r -- target value of red
  120. local Target_green = Target.g -- target value of green
  121. local Target_blue = Target.b -- target value of blue
  122.  
  123. local Difference_red = Target_red - Current_red -- difference between current red and target red
  124. local Difference_green = Target_green - Current_green -- difference between current green and target green
  125. local Difference_blue = Target_blue - Current_blue -- difference between current blue and target blue
  126.  
  127. local Red_frame = Difference_red / Frames -- this calculates how much to change value of red per frame
  128. local Green_frame = Difference_green / Frames -- this calculates how much to change value of green per frame
  129. local Blue_frame = Difference_blue / Frames -- this calculates how much to change value of blue per frame
  130.  
  131. for i = 1, Frames do -- loop from 1 to number of all frames
  132.  
  133. CurrentColor3 = Object.BackgroundColor3 -- this gets values of color every loop
  134. Current_red = CurrentColor3.r -- red
  135. Current_green = CurrentColor3.g -- green
  136. Current_blue = CurrentColor3.b -- blue
  137.  
  138. Object.BackgroundColor3 = Color3.new(Current_red + Red_frame, Current_green + Green_frame, Current_blue + Blue_frame) -- this changes values of colors by the difference/frame calculated before
  139. wait(TimeFrame) -- wait for seconds/frame; in the end it results in total wait of # seconds you wanted
  140. end
  141. Object.BackgroundColor3 = Target -- in case some numbers rounded incorrectly
  142. end
  143.  
  144. newColor = Color3.new(math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random()) -- color you want to get
  145.  
  146.  
  147. TweenColor3(speed_button, newColor, 0.5) TweenColor3(gravity_button, newColor, 0.5) TweenColor3(gravity_button, newColor, 0.5)
  148. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement