Roblox's earlier updates broke some tools [teleport fly etc]
I don't know why, but could anyone fix this up to make it work again?
bin = script.Parent
function onButton1Down(mouse)
mouse.Icon = "rbxasset://textures\\GunWaitCursor.png"
local hit = mouse.Target
if (hit == nil) then return end
if (hit.Name == "BlueDoor") then
hit.Transparency = 0.8
hit.CanCollide = false
wait(2)
hit.CanCollide = true
hit.Transparency = 0
script.Parent:remove()
mouse.Icon = "rbxasset://textures\\GunCursor.png"
end
end
function onSelected(mouse)
print("Action Tool Selected")
mouse.Icon = "rbxasset://textures\\GunCursor.png"
mouse.Button1Down:connect(function() onButton1Down(mouse) end)
end
bin.Selected:connect(onSelected) |