Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How to fix a Broken tool?

Although I am making a game... But since the last month I opened. The fly and other Tools are Broken. Can someone please help me fix the Broken Tools? :c

4 answers

Get a new one or open 'Output' and fix it yourself.

Due to ROBLOX updates, 95% old tools are broken

Here's the fly tool

Create a hopperbin, create a script inside the hopperbin and copy this:

local power = 15 
wait() 
bin = script.Parent 
bpos = Instance.new("BodyPosition") 
gyro = Instance.new("BodyGyro") 
gyro.maxTorque = Vector3.new(math.huge,math.huge,math.huge) 
bpos.maxForce = Vector3.new(math.huge,math.huge,math.huge) 
fly = false 
player = game.Players.LocalPlayer 
char = player.Character.Torso 
airborne = false 

function onButton1Down(mouse) 
fly = true 
while fly do 
pos = mouse.Hit.p 
--gyro.cframe = CFrame.new(char.Position,pos) 
bpos.position = char.Position + (pos-char.Position).unit * power 
wait() 
end 
end 

function onMove(mouse) 
pos = mouse.Hit.p 
gyro.cframe = CFrame.new(char.Position,pos) * CFrame.fromEulerAnglesXYZ(-3.14/2+1.2,0,0) 
--bpos.position = char.Position + 
--wait() 
--end 
end 

function onButton1Up(mouse) 
fly = false 
end 

function onSelected(mouse) 
print("select") 
if mouse == nil then 
return 
end 
airborne = true 
bpos.Parent = char 
bpos.position = char.Position + Vector3.new(0,10,0) 
gyro.Parent = char 
char.Parent.Humanoid.Sit = true 
mouse.Icon = "http://www.roblox.com/asset/?id=4941056" 
mouse.Button1Down:connect(function() onButton1Down(mouse) end) 
mouse.Button1Up:connect(function() onButton1Up(mouse) end) 
mouse.Move:connect(function() onMove(mouse) end) 

for i, v in ipairs(char:GetChildren()) do 
if v.className == "Motor" then 
v.MaxVelocity = 0 
v.CurrentAngle = -1 
if v.Name == "Left Hip" then 
v.CurrentAngle = 1 
end 
end 
end 
end 

function onDeselected(mouse) 
print("deselect") 
gyro.Parent = nil 
fly = false 
airborne = false 
for i, v in ipairs(char:GetChildren()) do 
if v.className == "Motor" then 
v.MaxVelocity = 1 
end 
end 
char.Parent.Humanoid.Sit = false 
for i = 1, 30 do 
if not airborne then 
bpos.position = bpos.position - Vector3.new(0,0.3,0) 
wait(0.1) 
end 
end 
if not airborne then 
bpos.Parent = nil 
end 
end 


bin.Selected:connect(onSelected) 
bin.Deselected:connect(onDeselected)

After ROBLOX updates, some old tools do not work at certain times or permanently like the configure tool, try to rescript it or you can get a new one

2 comments

0

Thanks guys.

0

No problem

This discussion is preserved as it was. New answers, comments, and votes are closed.