Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how do I convert this model to Filtering Enabled?

Asked by 6 years ago
Edited 6 years ago

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


0
Instead of posting the model, just post the specific script here. obcdino 113 — 6y
0
okay now i posted the script. Wabblebabble123 2 — 6y
0
RIP no one is going to help me with this. Wabblebabble123 2 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

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.

0
im a noob at scripting so idk about the remote events Wabblebabble123 2 — 6y
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. User#20279 0 — 6y
Ad

Answer this question