generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

On join make character invisible? Is that possible?

Previous Thread :: Next Thread 
Maxxell is not online. 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
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
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 is not online. 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
SpaceEnder is not online. SpaceEnder
Joined: 18 Oct 2013
Total Posts: 790
10 Aug 2014 06:50 PM
It will start something like this:
game.Players.PlayerAdded:connect(function(player)
code code code
end)
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
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 is not online. Maxxell
Joined: 25 Aug 2009
Total Posts: 38710
10 Aug 2014 06:52 PM
Awesome, thanks a lot I appreciate it!
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
10 Aug 2014 06:52 PM
Damn I missed my 3000th post here ;-;
Report Abuse
Maxxell is not online. 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
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
10 Aug 2014 07:06 PM
It should work
Report Abuse
Maxxell is not online. 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 is not online. 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 is not online. Maxxell
Joined: 25 Aug 2009
Total Posts: 38710
10 Aug 2014 07:21 PM
At least I'm honest.
Report Abuse
Maxxell is not online. Maxxell
Joined: 25 Aug 2009
Total Posts: 38710
10 Aug 2014 07:30 PM
1
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
10 Aug 2014 07:34 PM
Is it a normal script in workspace?
Report Abuse
Maxxell is not online. Maxxell
Joined: 25 Aug 2009
Total Posts: 38710
10 Aug 2014 07:37 PM
I tried that and it didn't work
Report Abuse
IAmTheRolo is online. IAmTheRolo
Joined: 12 Nov 2013
Total Posts: 859
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 is not online. 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
IAmTheRolo is online. IAmTheRolo
Joined: 12 Nov 2013
Total Posts: 859
10 Aug 2014 07:40 PM
normal script in workspace/serverscriptservice
Report Abuse
Maxxell is not online. Maxxell
Joined: 25 Aug 2009
Total Posts: 38710
10 Aug 2014 07:40 PM
Awesome, thank you!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image