Advertisement
reasons240

Untitled

Nov 10th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.91 KB | None | 0 0
  1. local lp = game.Players.LocalPlayer
  2. local mouse = lp:GetMouse()
  3. local w_ing = false
  4. local r15
  5.  
  6. _G.maxspeed = 25
  7. _G.minspeed = 6
  8.  
  9. if lp.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then
  10. r15 = true
  11. else
  12. r15 = false
  13. end
  14.  
  15. local anims = lp.Character.Animate
  16.  
  17. anims.idle.Animation2:Destroy()
  18.  
  19. local hat = lp.Character:FindFirstChild("MeshPartAccessory")
  20.  
  21. local idle = anims.idle:FindFirstChildOfClass("Animation").AnimationId
  22.  
  23. local walk = anims.walk:FindFirstChildOfClass("Animation").AnimationId
  24.  
  25. local run = anims.run:FindFirstChildOfClass("Animation").AnimationId
  26.  
  27. local jump = anims.jump:FindFirstChildOfClass("Animation").AnimationId
  28.  
  29. local sit = anims.sit:FindFirstChildOfClass("Animation").AnimationId
  30.  
  31. if hat.Handle ~= nil then
  32.  
  33. tool = Instance.new("Tool", lp.Backpack)
  34. tool.Grip = CFrame.new(1.5,1.5,-0.8)
  35. tool.Name = "Car"
  36.  
  37. tool.Equipped:Connect(function()
  38. anims.idle:FindFirstChildOfClass("Animation").AnimationId = sit
  39. anims.walk:FindFirstChildOfClass("Animation").AnimationId = sit
  40. anims.run:FindFirstChildOfClass("Animation").AnimationId = sit
  41. anims.jump:FindFirstChildOfClass("Animation").AnimationId = sit
  42. if r15 then
  43. lp.Character.Humanoid.HipHeight = 0.85
  44. else
  45. lp.Character.Humanoid.HipHeight = -0.9
  46. end
  47. end)
  48.  
  49. tool.Unequipped:Connect(function()
  50. lp.Character.Humanoid.WalkSpeed = 16
  51. anims.idle:FindFirstChildOfClass("Animation").AnimationId = idle
  52. anims.walk:FindFirstChildOfClass("Animation").AnimationId = walk
  53. anims.run:FindFirstChildOfClass("Animation").AnimationId = run
  54. anims.jump:FindFirstChildOfClass("Animation").AnimationId = jump
  55. if r15 then
  56. lp.Character.Humanoid.HipHeight = 2
  57. else
  58. lp.Character.Humanoid.HipHeight = 0
  59. end
  60. end)
  61.  
  62. tool.Equipped:Connect(function()
  63.  
  64. game.CoreGui.ScreenGui.Frame:TweenPosition(UDim2.new(0.2, 0, 0.3, 0),"Out","Quad",1,true)
  65. game.CoreGui.ScreenGui.speedframe:TweenPosition(UDim2.new(0.89, 0,0.400, 0),"Out","Quad",1,true)
  66.  
  67.  
  68. local Anim = Instance.new("Animation")
  69. Anim.AnimationId = sit
  70. local k = lp.Character.Humanoid:LoadAnimation(Anim)
  71. k:Play()
  72. k:AdjustSpeed(1)
  73. k:Destroy()
  74. Anim:Destroy()
  75. wait()
  76. lp.Character.Humanoid:Move(Vector3.new(10,0,0))
  77. end)
  78.  
  79. tool.Unequipped:Connect(function()
  80.  
  81. game.CoreGui.ScreenGui.Frame:TweenPosition(UDim2.new(-0.2, 0, -0.3, 0),"Out","Quad",1,true)
  82. game.CoreGui.ScreenGui.speedframe:TweenPosition(UDim2.new(-0.89, 0,-0.4, 0),"Out","Quad",1,true)
  83.  
  84.  
  85. local Anim = Instance.new("Animation")
  86. Anim.AnimationId = run
  87. local k = lp.Character.Humanoid:LoadAnimation(Anim)
  88. k:Play()
  89. k:AdjustSpeed(1)
  90. k:Destroy()
  91. Anim:Destroy()
  92. wait()
  93. lp.Character.Humanoid:Move(Vector3.new(10,0,0))
  94. end)
  95.  
  96.  
  97. local hathandle = hat.Handle
  98. hathandle:FindFirstChildOfClass("Weld"):Destroy()
  99. hathandle.Parent = tool
  100. hathandle.Massless = true
  101.  
  102.  
  103.  
  104.  
  105.  
  106. mouse.KeyDown:Connect(function(key)
  107. if key == "w" then
  108. w_ing = true
  109. end
  110. end)
  111.  
  112. mouse.KeyDown:Connect(function(key)
  113. if key == "w" then
  114. Instance.new("Sound").Parent = game.Workspace
  115. game.Workspace.Sound.Name = "Music"
  116. game.Workspace.Music.SoundId = "rbxassetid://4103614624"
  117. game.Workspace.Music.Looped = true
  118. game.Workspace.Music.Pitch = 1
  119. game.Workspace.Music.Volume = 100
  120. game.Workspace.Music:Play()
  121. end
  122. end)
  123.  
  124. mouse.KeyUp:Connect(function(key)
  125. if key == "w" then
  126. w_ing = false
  127. end
  128. end)
  129.  
  130. mouse.KeyUp:Connect(function(key)
  131. if key == "w" then
  132. Instance.new("Sound").Parent = game.Workspace
  133. game.Workspace.Sound.Name = "Music"
  134. game.Workspace.Music.SoundId = "rbxassetid://2294715556"
  135. game.Workspace.Music.Looped = true
  136. game.Workspace.Music.Pitch = 1
  137. game.Workspace.Music.Volume = 100
  138. game.Workspace.Music:Play()
  139. end
  140. end)
  141.  
  142.  
  143.  
  144.  
  145. spawn(function()
  146.  
  147. repeat wait()
  148. if w_ing and tool.Parent == lp.Character then
  149. if lp.Character.Humanoid.WalkSpeed < _G.maxspeed then
  150. lp.Character.Humanoid.WalkSpeed = lp.Character.Humanoid.WalkSpeed +1
  151. end
  152. elseif not w_ing and tool.Parent == lp.Character then
  153. if lp.Character.Humanoid.WalkSpeed > _G.minspeed then
  154. lp.Character.Humanoid.WalkSpeed = lp.Character.Humanoid.WalkSpeed -6
  155. end
  156.  
  157. end
  158. until lp.Character.Humanoid.Health <= 0
  159.  
  160. end)
  161.  
  162. local son = true
  163.  
  164. local ScreenGui = Instance.new("ScreenGui")
  165. local Frame = Instance.new("Frame")
  166. local optbtn = Instance.new("TextButton")
  167. local Frame_2 = Instance.new("Frame")
  168. local maxspeed = Instance.new("TextLabel")
  169. local line = Instance.new("TextLabel")
  170. local _25 = Instance.new("TextButton")
  171. local _200 = Instance.new("TextButton")
  172. local _100 = Instance.new("TextButton")
  173. local _50 = Instance.new("TextButton")
  174. --Properties:
  175. ScreenGui.Parent = game.CoreGui
  176. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  177.  
  178. Frame.Parent = ScreenGui
  179. Frame.Active = true
  180. Frame.BackgroundColor3 = Color3.new(0.431373, 0.431373, 0.431373)
  181. Frame.BackgroundTransparency = 0.30000001192093
  182. Frame.BorderSizePixel = 2
  183. Frame.Position = UDim2.new(-0.2, 0, -0.3, 0)
  184. Frame.Size = UDim2.new(0, 163, 0, 48)
  185.  
  186. optbtn.Name = "optbtn"
  187. optbtn.Parent = Frame
  188. optbtn.BackgroundColor3 = Color3.new(0.815686, 0.815686, 0.815686)
  189. optbtn.BackgroundTransparency = 0.30000001192093
  190. optbtn.BorderSizePixel = 2
  191. optbtn.Position = UDim2.new(0.117860004, 0, 0.28766194, 0)
  192. optbtn.Size = UDim2.new(0, 124, 0, 19)
  193. optbtn.Font = Enum.Font.Code
  194. optbtn.Text = "Car Options"
  195. optbtn.TextColor3 = Color3.new(0, 0, 0)
  196. optbtn.TextSize = 14
  197.  
  198. Frame_2.Parent = Frame
  199. Frame_2.BackgroundColor3 = Color3.new(0.431373, 0.431373, 0.431373)
  200. Frame_2.BackgroundTransparency = 0.30000001192093
  201. Frame_2.BorderSizePixel = 2
  202. Frame_2.Position = UDim2.new(0, 0, 1.04999995, 0)
  203. Frame_2.Size = UDim2.new(0, 163, 0, 178)
  204.  
  205. maxspeed.Name = "maxspeed"
  206. maxspeed.Parent = Frame_2
  207. maxspeed.BackgroundColor3 = Color3.new(1, 1, 1)
  208. maxspeed.BackgroundTransparency = 1
  209. maxspeed.BorderSizePixel = 0
  210. maxspeed.Position = UDim2.new(0.0674846619, 0, 0.0337078646, 0)
  211. maxspeed.Size = UDim2.new(0, 143, 0, 20)
  212. maxspeed.Font = Enum.Font.SourceSans
  213. maxspeed.Text = "Max Speed"
  214. maxspeed.TextColor3 = Color3.new(0, 0, 0)
  215. maxspeed.TextScaled = true
  216. maxspeed.TextSize = 14
  217. maxspeed.TextWrapped = true
  218.  
  219. line.Name = "line"
  220. line.Parent = Frame_2
  221. line.BackgroundColor3 = Color3.new(0, 0, 0)
  222. line.BackgroundTransparency = 0
  223. line.BorderSizePixel = 0
  224. line.Position = UDim2.new(0.128834352, 0, 0.146067411, 0)
  225. line.Size = UDim2.new(0, 119, 0, 1)
  226. line.Font = Enum.Font.SourceSans
  227. line.Text = ""
  228. line.TextColor3 = Color3.new(0, 0, 0)
  229. line.TextSize = 14
  230.  
  231. _25.Name = "25"
  232. _25.Parent = Frame_2
  233. _25.BackgroundColor3 = Color3.new(0.815686, 0.815686, 0.815686)
  234. _25.BackgroundTransparency = 0.30000001192093
  235. _25.BorderSizePixel = 2
  236. _25.Position = UDim2.new(0.0674846619, 0, 0.202247187, 0)
  237. _25.Size = UDim2.new(0, 142, 0, 16)
  238. _25.Font = Enum.Font.SourceSans
  239. _25.Text = "25"
  240. _25.TextColor3 = Color3.new(0, 0, 0)
  241. _25.TextSize = 14
  242.  
  243. _200.Name = "200"
  244. _200.Parent = Frame_2
  245. _200.BackgroundColor3 = Color3.new(0.815686, 0.815686, 0.815686)
  246. _200.BackgroundTransparency = 0.30000001192093
  247. _200.BorderSizePixel = 2
  248. _200.Position = UDim2.new(0.0674846619, 0, 0.797752798, 0)
  249. _200.Size = UDim2.new(0, 142, 0, 16)
  250. _200.Font = Enum.Font.SourceSans
  251. _200.Text = "200"
  252. _200.TextColor3 = Color3.new(0, 0, 0)
  253. _200.TextSize = 14
  254.  
  255. _100.Name = "100"
  256. _100.Parent = Frame_2
  257. _100.BackgroundColor3 = Color3.new(0.815686, 0.815686, 0.815686)
  258. _100.BackgroundTransparency = 0.30000001192093
  259. _100.BorderSizePixel = 2
  260. _100.Position = UDim2.new(0.0674846619, 0, 0.606741548, 0)
  261. _100.Size = UDim2.new(0, 142, 0, 16)
  262. _100.Font = Enum.Font.SourceSans
  263. _100.Text = "100"
  264. _100.TextColor3 = Color3.new(0, 0, 0)
  265. _100.TextSize = 14
  266.  
  267. _50.Name = "50"
  268. _50.Parent = Frame_2
  269. _50.BackgroundColor3 = Color3.new(0.815686, 0.815686, 0.815686)
  270. _50.BackgroundTransparency = 0.30000001192093
  271. _50.BorderSizePixel = 2
  272. _50.Position = UDim2.new(0.0736196339, 0, 0.410112321, 0)
  273. _50.Size = UDim2.new(0, 142, 0, 16)
  274. _50.Font = Enum.Font.SourceSans
  275. _50.Text = "50"
  276. _50.TextColor3 = Color3.new(0, 0, 0)
  277. _50.TextSize = 14
  278. -- Scripts:
  279. function SCRIPT_DVST66_FAKESCRIPT() -- optbtn.Script
  280. local script = Instance.new('Script')
  281. script.Parent = optbtn
  282.  
  283. script.Parent.MouseButton1Click:Connect(function()
  284.  
  285. if son then
  286. script.Parent.Parent.Frame:TweenSize(UDim2.new(0, 163, 0, 0),"Out","Quad",0.4,true)
  287.  
  288. for i,v in pairs(script.Parent.Parent.Frame:GetChildren()) do
  289. if v.Name ~= "maxspeed" then
  290. v.Transparency = 1
  291. else
  292. v.TextTransparency = 1
  293. end
  294. end
  295.  
  296.  
  297. son = false
  298. else
  299. script.Parent.Parent.Frame:TweenSize(UDim2.new(0, 163, 0, 178),"In","Quad",0.4,true)
  300.  
  301. for i,v in pairs(script.Parent.Parent.Frame:GetChildren()) do
  302. if v.Name ~= "line" and v.Name ~= "maxspeed" then
  303. v.Transparency = 0.3
  304. elseif v.Name == "line" then
  305. v.Transparency = 0
  306. elseif v.Name == "maxspeed" then
  307. v.TextTransparency = 0
  308. end
  309. end
  310.  
  311.  
  312. son = true
  313. end
  314.  
  315.  
  316. end)
  317.  
  318. end
  319. coroutine.resume(coroutine.create(SCRIPT_DVST66_FAKESCRIPT))
  320. function SCRIPT_XUSA80_FAKESCRIPT() -- _25.Script
  321. local script = Instance.new('Script')
  322. script.Parent = _25
  323. script.Parent.MouseButton1Click:Connect(function()
  324.  
  325.  
  326. _G.maxspeed = 25
  327.  
  328.  
  329.  
  330. end)
  331.  
  332. end
  333. coroutine.resume(coroutine.create(SCRIPT_XUSA80_FAKESCRIPT))
  334. function SCRIPT_FOAR80_FAKESCRIPT() -- _200.Script
  335. local script = Instance.new('Script')
  336. script.Parent = _200
  337. script.Parent.MouseButton1Click:Connect(function()
  338.  
  339.  
  340. _G.maxspeed = 200
  341.  
  342.  
  343.  
  344. end)
  345.  
  346. end
  347. coroutine.resume(coroutine.create(SCRIPT_FOAR80_FAKESCRIPT))
  348. function SCRIPT_HUUK86_FAKESCRIPT() -- _100.Script
  349. local script = Instance.new('Script')
  350. script.Parent = _100
  351. script.Parent.MouseButton1Click:Connect(function()
  352.  
  353.  
  354. _G.maxspeed = 100
  355.  
  356.  
  357.  
  358. end)
  359.  
  360. end
  361. coroutine.resume(coroutine.create(SCRIPT_HUUK86_FAKESCRIPT))
  362. function SCRIPT_OOYI66_FAKESCRIPT() -- _50.Script
  363. local script = Instance.new('Script')
  364. script.Parent = _50
  365. script.Parent.MouseButton1Click:Connect(function()
  366.  
  367.  
  368. _G.maxspeed = 50
  369.  
  370.  
  371.  
  372. end)
  373.  
  374. end
  375. coroutine.resume(coroutine.create(SCRIPT_OOYI66_FAKESCRIPT))
  376. function SCRIPT_TPOK81_FAKESCRIPT() -- Frame.Script
  377. local script = Instance.new('Script')
  378. script.Parent = Frame
  379. local a=game:GetService("UserInputService")local b=script.Parent;local c;local d;local e;local f;local function g(h)local i=h.Position-e;b.Position=UDim2.new(f.X.Scale,f.X.Offset+i.X,f.Y.Scale,f.Y.Offset+i.Y)end;b.InputBegan:Connect(function(h)if h.UserInputType==Enum.UserInputType.MouseButton1 or h.UserInputType==Enum.UserInputType.Touch then c=true;e=h.Position;f=b.Position;h.Changed:Connect(function()if h.UserInputState==Enum.UserInputState.End then c=false end end)end end)b.InputChanged:Connect(function(h)if h.UserInputType==Enum.UserInputType.MouseMovement or h.UserInputType==Enum.UserInputType.Touch then d=h end end)a.InputChanged:Connect(function(h)if h==d and c then g(h)end end)
  380.  
  381. end
  382. coroutine.resume(coroutine.create(SCRIPT_TPOK81_FAKESCRIPT))
  383.  
  384.  
  385. local speedframe = Instance.new("Frame")
  386. local speedlbl = Instance.new("TextLabel")
  387. local line2 = Instance.new("TextLabel")
  388. local speednum = Instance.new("TextLabel")
  389.  
  390. speedframe.Name = "speedframe"
  391. speedframe.Parent = ScreenGui
  392. speedframe.BackgroundColor3 = Color3.new(0.431373, 0.431373, 0.431373)
  393. speedframe.BackgroundTransparency = 0.30000001192093
  394. speedframe.Position = UDim2.new(-0.89, 0, -0.400, 0)
  395. speedframe.Size = UDim2.new(0, 137, 0, 63)
  396.  
  397. speedlbl.Name = "speedlbl"
  398. speedlbl.Parent = speedframe
  399. speedlbl.BackgroundColor3 = Color3.new(1, 1, 1)
  400. speedlbl.BackgroundTransparency = 1
  401. speedlbl.BorderSizePixel = 0
  402. speedlbl.Position = UDim2.new(0, 0, 0.00312877842, 0)
  403. speedlbl.Size = UDim2.new(0, 136, 0, 20)
  404. speedlbl.Font = Enum.Font.SourceSans
  405. speedlbl.Text = "Speed"
  406. speedlbl.TextColor3 = Color3.new(0, 0, 0)
  407. speedlbl.TextScaled = true
  408. speedlbl.TextSize = 14
  409. speedlbl.TextWrapped = true
  410.  
  411. line2.Name = "line2"
  412. line2.Parent = speedframe
  413. line2.BackgroundColor3 = Color3.new(0, 0, 0)
  414. line2.BorderSizePixel = 0
  415. line2.Position = UDim2.new(0.140239716, 0, 0.307832301, 0)
  416. line2.Size = UDim2.new(0, 98, 0, 1)
  417. line2.Font = Enum.Font.SourceSans
  418. line2.Text = ""
  419. line2.TextColor3 = Color3.new(0, 0, 0)
  420. line2.TextSize = 14
  421.  
  422. speednum.Name = "speednum"
  423. speednum.Parent = speedframe
  424. speednum.BackgroundColor3 = Color3.new(1, 1, 1)
  425. speednum.BackgroundTransparency = 1
  426. speednum.BorderSizePixel = 0
  427. speednum.Position = UDim2.new(-0.0294587687, 0, 0.459011316, 0)
  428. speednum.Size = UDim2.new(0, 143, 0, 20)
  429. speednum.Font = Enum.Font.SourceSans
  430. speednum.Text = "0"
  431. speednum.TextColor3 = Color3.new(0, 0, 0)
  432. speednum.TextScaled = true
  433. speednum.TextSize = 14
  434. speednum.TextWrapped = true
  435.  
  436. spawn(function()
  437. while wait() do
  438. speednum.Text = lp.Character:WaitForChild("Humanoid").WalkSpeed
  439. end
  440. end)
  441.  
  442. lp.Character.Humanoid.Died:Connect(function()
  443. Frame:TweenPosition(UDim2.new(-0.2, 0, -0.3, 0),"Out","Quad",1,true)
  444. speedframe:TweenPosition(UDim2.new(-0.89, 0,-0.400, 0),"Out","Quad",1,true)
  445. wait(1.16)
  446. ScreenGui:Destroy()
  447. end)
  448.  
  449. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement