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

Player Can see script and other can not why?

When i do instant.new(part Character) only he can see it and no everyone else

And when i try to make things in my Character invisible it make it invisible only for him and everyone still can see him

Here a button that make your torso invisible (other players still can see it)

Code:

wait(0.1)

local Player = game.Players.LocalPlayer

local Character = Player.Character

function onButtonClicked()

Player.Character.UpperTorso.Transparency = 1

end

script.Parent.MouseButton1Click:connect(onButtonClicked)

2 comments

0

code blocks plz

0

at least it was spaced out LOL

1 answer

why no one can see your torso invis change, is because your using a LocalScript which runs on the client, so when you make a Part or change your torso Transparency like you did, it only changed to locally for the Client. When you change it locally you can only see the change, not others. If you want to make everyone see the change, use RemoteEvents so the Client can communicate with the Server to make the invis change, since when the server makes a change all the clients see it.

3 comments

0

Can you send me a fix script of my script?

0

well try putting the lines for changing the torso's transparency into a server script

0

https://wiki.roblox.com/index.php?title=Remote_Functions_%26_Events, this should guide you on how to make a remote event, dont expect people to just give you the script

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