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

Why is this local script not acting like a local script? ;-;

Asked by
yut640 91
8 years ago

K so I have a script right yep of course I do why would I be here if I didnt...

Anyway. This tool script thing is a local script and it causes things to appear when you hold it right and yeah it does that thing. But if another player holds the item, all players see the stuff that should be invisible. How do I make it so it doesn't do that? I want it to just be the player holding the item that is the one that can see the stuff. It's irritating like ugh kms.

01local tool = script.Parent
02local parts = workspace.Invis:GetChildren()
03 
04local function onEquip()
05    for i,v in pairs(parts) do
06        v.Transparency = 0.5
07    end
08end
09 
10local function onUnequip()
11    for i,v in pairs(parts) do
12        v.Transparency = 1
13    end
14end
15 
View all 33 lines...

1 answer

Log in to vote
1
Answered by
ikiled 75 Donator
8 years ago

Make your game filtering enabled for that to work.

Ad

Answer this question