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

Player Can see script and other can not why?

Asked by 5 years ago
Edited 5 years ago

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)

0
code blocks plz User#23365 30 — 5y
0
at least it was spaced out LOL User#19524 175 — 5y

1 answer

Log in to vote
1
Answered by 5 years ago
Edited 5 years ago

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.

0
Can you send me a fix script of my script? xGoku_Kakarot 0 — 5y
0
well try putting the lines for changing the torso's transparency into a server script User#23365 30 — 5y
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 aazkao 787 — 5y
Ad

Answer this question