Maxxell
|
  |
| Joined: 25 Aug 2009 |
| Total Posts: 38710 |
|
|
| 10 Aug 2014 06:46 PM |
No idea how to code it.
I think the structure should be something like
if name = maxxell or insertnamehere player.visible.false
or something to do with transparency? |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2014 06:48 PM |
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) character.ChildAdded:connect(function(child) if child:IsA"BasePart" then child.Transparency = 1 end end) end) end)
Put this in a normal script inside ServerScriptService
|
|
|
| Report Abuse |
|
|
Maxxell
|
  |
| Joined: 25 Aug 2009 |
| Total Posts: 38710 |
|
|
| 10 Aug 2014 06:49 PM |
| Thank you, where would I add my name there? I don't want this to happen for everyone, just for the name(s) I need. |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2014 06:50 PM |
It will start something like this: game.Players.PlayerAdded:connect(function(player) code code code end) |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2014 06:51 PM |
invisPeople = { "Maxxell", "Player1" }
function checkforName(name) for _,v in pairs(invisPeople) do if v == name then return true end end return false end
game.Players.PlayerAdded:connect(function(player) if checkforName(player.Name) then player.CharacterAdded:connect(function(character) character.ChildAdded:connect(function(child) if child:IsA"BasePart" then child.Transparency = 1 end end) end) end end) |
|
|
| Report Abuse |
|
|
Maxxell
|
  |
| Joined: 25 Aug 2009 |
| Total Posts: 38710 |
|
|
| 10 Aug 2014 06:52 PM |
| Awesome, thanks a lot I appreciate it! |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2014 06:52 PM |
| Damn I missed my 3000th post here ;-; |
|
|
| Report Abuse |
|
|
Maxxell
|
  |
| Joined: 25 Aug 2009 |
| Total Posts: 38710 |
|
|
| 10 Aug 2014 06:58 PM |
| I did what you said and it's not working, is there an error somewhere or something I'm doing?.. |
|
|
| Report Abuse |
|
|
| |
|
Maxxell
|
  |
| Joined: 25 Aug 2009 |
| Total Posts: 38710 |
|
|
| 10 Aug 2014 07:19 PM |
| I tried changing the variable invisPeople to local, and also tried putting the script in workspace with both variable types but it doesn't work? |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 10 Aug 2014 07:20 PM |
you're making a case for your primary group (lol sorry, jk)
local and global variables shouldn't affect this too much. Making them global is safer because they might run out of scope if used improperly. |
|
|
| Report Abuse |
|
|
Maxxell
|
  |
| Joined: 25 Aug 2009 |
| Total Posts: 38710 |
|
| |
|
Maxxell
|
  |
| Joined: 25 Aug 2009 |
| Total Posts: 38710 |
|
| |
|
|
| 10 Aug 2014 07:34 PM |
| Is it a normal script in workspace? |
|
|
| Report Abuse |
|
|
Maxxell
|
  |
| Joined: 25 Aug 2009 |
| Total Posts: 38710 |
|
|
| 10 Aug 2014 07:37 PM |
| I tried that and it didn't work |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2014 07:38 PM |
local Special = {"Player1","IAmTheRolo"}
function CheckStatus(player) for i,v in pairs(Special) do if player.Name==v then return true end end return false end
game.Players.PlayerAdded:connect(function(p) if CheckStatus(p) then p.CharacterAdded:connect(function(c) wait(1) for i,v in pairs(c:GetChildren()) do if v:IsA'BasePart' then v.Transparency = 1 elseif v:IsA'Hat' then v:Destroy() end end end) end end)
Tested and it worked. |
|
|
| Report Abuse |
|
|
Maxxell
|
  |
| Joined: 25 Aug 2009 |
| Total Posts: 38710 |
|
|
| 10 Aug 2014 07:39 PM |
| Where do I put this, normal script in workspace? |
|
|
| Report Abuse |
|
|
|
| 10 Aug 2014 07:40 PM |
| normal script in workspace/serverscriptservice |
|
|
| Report Abuse |
|
|
Maxxell
|
  |
| Joined: 25 Aug 2009 |
| Total Posts: 38710 |
|
| |
|