Change Part transparency ingame + Studio

Can anyone help me?
I’m making a game where the SpawnLocation are difficult to find in the map, so I must change Appearance.Transparency to 0. Although this is helpful in Studio, I can’t seem to find a way to make it transparent ingame. Is there a script to change the SpawnLocation.Appearance.Transparency so that I can see it in Studio but players can’t see it ingame? I know that when the server is fired up, the .Transparency is set to 1, but I can’t put it into Lua words.

Thanks

Insert this simple script into the part.

script.Parent.Transparency = 1

If you’re looking to make it only appear for the player (aka client side not serverside) i’d recommend using a LocalScript instead of a regular Script

have a client side script that changes the visual aspect for the player but doesn’t interact server side

Just go to properties, and find Transparency, and set it to 1, or if you want to set it as a script:

script.Parent.Transparency = 1

script.Parent is the object, so you must put that script inside the object. And remove the decal inside the SpawnLocation. I hope that helps!


EDIT :

Sorry, now i understand your issue, you must set a localscript inside StarterPlayer > StarterPlayerScripts, and write this:

local Part = game.Workspace.SpawnLocation
Part.Transparency = 0

Now i hope that helps :+1:

1 Like

4 posts were split to a new topic: Off topic in “Change Part Transparency ingame + Studio”