Advertisement
Guest User

Untitled

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