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

Player to Brick like Player to PlayerGui HOW?

Asked by 5 years ago
Edited 5 years ago

My problem: The scenario is that I have a brick and I want this brick to destroy itself when the creator joins. BUT I want it only to destroy to the creator's game. To all the other players' game I want the brick to still be there. I don't want this to happen when the brick is touched. I only want this to happen when the creator joins the game. An analogy to this would be like the Player with a GUI to the PlayerGui, but with a brick instead of a GUI :)

Sorry if it's confusing. But if you understand, Could you help me know what to research by giving me like a link to a wiki page or something? Maybe it has to do with camera manipulation or I dont know.. THANKS!

0
Did you make an attempt? WideSteal321 773 — 5y
0
just do a local script, so it's local and do something like (define player) then if plr.Name == "yourName" then part:Destroy() tonyv537 95 — 5y
0
So you're wanting the brick to vanish for everyone or just the creator? M39a9am3R 3210 — 5y

1 answer

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

I'll only tell you what you need to be able to complete your task because you have not shown us any code of your own along with information based on if you attempted to do this at all. ScriptingHelpers is a helping site, we're not here for doing tasks for people, but instead helping with what they have already tried!

You appear to want to make a part be destroyed when a person joins the game, but only for that person, the following will describe what you need to do.

First, have this part placed in workspace. Due to you wanting this part to vanish on client, we can just use a local script placed in StarterGui. The local script will need to check the account's ID (names can be changed) and if the ID is the same as the creator, call the :destroy() method on the part. Be sure to wait for the part to load, otherwise, you'll get an error and have to part stay!

0
Thank you so much! That's what I needed to know MusicalDisplay 173 — 5y
0
No problem alphawolvess 1784 — 5y
Ad

Answer this question