I have a script with a tool that when you click the door it opens. But well the door script is depreciated.
Script:
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 == "YellowDoor") then hit.Transparency = 0.8 hit.CanCollide = false wait(2) hit.CanCollide = true hit.Transparency = 0 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
You’re using things that require both local scripts and server (regular) scripts to work. Changing the door requires the server to do that, and changing the mouse icon requires the client to do that.
You’ll probably have to use RemoteEvents to do this. Also I’d try to fix your script right now but I’m on mobile at the moment. For now you can experiment with RemoteEvents and your script to see if you can get it to work.