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 » Scripters
Home Search
 

Re: Why does this not work?

Previous Thread :: Next Thread 
Chaddaking is online. Chaddaking
Joined: 07 Oct 2015
Total Posts: 8143
27 Aug 2017 10:26 PM
Works in studio, but not the real game. Also, it turns you into a character after a certain amount of time. Script:

function onPlayerAdded(player)
wait(2000)
player.CharacterAppearance = "(WHAT I PUTS HERE GETS TAGGED)"
game.Players.LocalPlayer:LoadCharacter()
end
game.Players.PlayerAdded:connect(onPlayerAdded)
Report Abuse
gohan31865 is not online. gohan31865
Joined: 30 Jan 2011
Total Posts: 895
27 Aug 2017 10:28 PM
i think u might have to use that on a normal script and not a local script.

therefore, u cant use game.Players.Localplayer.

rather, u use the player arguement to directly load the character

player:LoadCharacter()
Report Abuse
Chaddaking is online. Chaddaking
Joined: 07 Oct 2015
Total Posts: 8143
27 Aug 2017 10:31 PM
The 'what i put here gets tagged' is this: ###### /www . roblox . co m/Asset/CharacterFetch.ashx?userId=145227626 (without spaces)
Report Abuse
Chaddaking is online. Chaddaking
Joined: 07 Oct 2015
Total Posts: 8143
27 Aug 2017 10:33 PM
I am using a normal script, but it is in a folder.
Should I remove it from the folder?
Report Abuse
gohan31865 is not online. gohan31865
Joined: 30 Jan 2011
Total Posts: 895
27 Aug 2017 10:36 PM
yes, try that. also check the output for any errors that u may have
Report Abuse
Chaddaking is online. Chaddaking
Joined: 07 Oct 2015
Total Posts: 8143
27 Aug 2017 10:43 PM
I removed them from the folder, and it's not working.
But it works in studio??

I don't understand what I'm doing wrong.
Report Abuse
Chaddaking is online. Chaddaking
Joined: 07 Oct 2015
Total Posts: 8143
27 Aug 2017 10:44 PM
OutPut has nothing.
Report Abuse
Chaddaking is online. Chaddaking
Joined: 07 Oct 2015
Total Posts: 8143
27 Aug 2017 10:46 PM
I made a local script, copied and pasted the script, and it doesn't work.
Report Abuse
gohan31865 is not online. gohan31865
Joined: 30 Jan 2011
Total Posts: 895
27 Aug 2017 10:48 PM
did a little bit of research, try using player:LoadCharacterAppearance instead
Report Abuse
Chaddaking is online. Chaddaking
Joined: 07 Oct 2015
Total Posts: 8143
27 Aug 2017 10:49 PM
So this instead?

function onPlayerAdded(player)
wait(50)
player.CharacterAppearance = "(tagged)"
game.player:LoadCharacterAppearance()
end
game.Players.PlayerAdded:connect(onPlayerAdded)

Report Abuse
gohan31865 is not online. gohan31865
Joined: 30 Jan 2011
Total Posts: 895
27 Aug 2017 10:54 PM
player.CharacterAppearance is depreciated apparently
Report Abuse
Chaddaking is online. Chaddaking
Joined: 07 Oct 2015
Total Posts: 8143
27 Aug 2017 10:55 PM
(I'm sorry I'm a noob scripter)
Report Abuse
Chaddaking is online. Chaddaking
Joined: 07 Oct 2015
Total Posts: 8143
27 Aug 2017 10:57 PM
So what can I do to fix this?
Report Abuse
Chaddaking is online. Chaddaking
Joined: 07 Oct 2015
Total Posts: 8143
27 Aug 2017 11:18 PM
B U M P
(still not working)
Report Abuse
Chaddaking is online. Chaddaking
Joined: 07 Oct 2015
Total Posts: 8143
27 Aug 2017 11:28 PM
So I put this in a lua script tester, and it told me this.

input:6: attempt to index a nil value (global 'game')

Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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