i Want to fix an old tool but i can't? [closed]
Asked by
4 years ago Edited 4 years ago
Hi i wan't to fix a tool called JetBoots because i am fixing some of the roblox games the tool is from 2008 so it is broken here is the script
01 | print ( "Jet Boots loaded" ) |
08 | local thrust = Instance.new( "BodyVelocity" ) |
10 | local max_velocity = 30 |
16 | print ( "start walking" ) |
20 | thrust.Parent = game.Players.LocalPlayer.Character.PrimaryPart |
22 | thrust.velocity = Vector 3. new( 0 ,velocity, 0 ) |
23 | thrust.maxForce = Vector 3. new( 0 , 4 e+ 003 , 0 ) |
25 | local sound = game.Players.LocalPlayer.Character.PrimaryPart:findFirstChild( "JetbootSound" ) |
27 | sound = Instance.new( "Sound" ) |
28 | sound.Name = "JetbootSound" |
31 | sound.Parent = game.Players.LocalPlayer.Character.PrimaryPart |
41 | local sound = game.Players.LocalPlayer.Character.PrimaryPart:findFirstChild( "JetbootSound" ) |
42 | if sound ~ = nil then sound:stop() end |
47 | function onButton 1 Down(mouse) |
48 | if reloadtime > 0 then return end |
49 | if walking = = true then return end |
55 | while walking = = true do |
59 | velocity = (max_velocity * (time / flight_time)) + 3 |
60 | thrust.velocity = Vector 3. new( 0 ,velocity, 0 ) |
62 | if time > flight_time then onButton 1 Up(mouse) end |
66 | function onButton 1 Up(mouse) |
71 | function onSelected(mouse) |
72 | print ( "ghostwalker selected" ) |
73 | if reloadtime > 0 then |
78 | mouse.Button 1 Down:connect( function () onButton 1 Down(mouse) end ) |
79 | mouse.Button 1 Up:connect( function () onButton 1 Up(mouse) end ) |
82 | bin.Selected:connect(onSelected) |
also i forgot to say that it is hopperbin not a tool what is the difference ?