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

how do I convert this model to Filtering Enabled?

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


3 comments

0

Instead of posting the model, just post the specific script here.

0

okay now i posted the script.

0

RIP no one is going to help me with this.

1 answer

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.

2 comments

0

im a noob at scripting so idk about the remote events

0

That's why I left a link about RemoteEvents on the RemoteEvents text. Just click it and it should teach you how to use it. If you can't understand it still, maybe watch a Youtube video about it.

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