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: This script stopped working overnight

Previous Thread :: Next Thread 
troyqaz is not online. troyqaz
Joined: 22 Jan 2009
Total Posts: 1713
08 Aug 2016 09:55 PM
It was working yesterday, but now it isn't. Players spawn with their hats when they first join, but it removes them properly after they reset. Can anyone help me out?

game.Workspace.ChildAdded:connect(function(plr)
local name = plr.Name
local playerinplayers = game.Players:FindFirstChild(plr.Name)
if playerinplayers ~= nil then
playerinplayers.CanLoadCharacterAppearance = false
plr.Head.face.Texture = "rbxassetid://110490566"
local shirt = Instance.new('Shirt', plr)
shirt.ShirtTemplate = "rbxassetid://416432753"
local pants = Instance.new('Pants', plr)
pants.PantsTemplate = "rbxassetid://416432805"
local bodycolors = Instance.new("BodyColors", plr)
bodycolors.RightArmColor = BrickColor.new("Really black")
bodycolors.LeftArmColor = BrickColor.new("Really black")
bodycolors.LeftLegColor = BrickColor.new("Really black")
bodycolors.RightLegColor = BrickColor.new("Really black")
bodycolors.TorsoColor = BrickColor.new("Really black")
bodycolors.HeadColor = BrickColor.new("Really black")
end
Report Abuse
DevVince is not online. DevVince
Joined: 08 Nov 2008
Total Posts: 9245
08 Aug 2016 10:02 PM
Hey look a spammer!

"This script stopped working overnight"

No it always did the same thing if you didn't touch it they don't magically rewright themselves.. >_>
Report Abuse
DevVince is not online. DevVince
Joined: 08 Nov 2008
Total Posts: 9245
08 Aug 2016 10:05 PM
Proof of spam:
https://forum.roblox.com/Forum/ShowPost.aspx?PostID=195700648

Your problem is logic.

The player spawns in then you set it to not load the appearance you need to set it before they spawn. (Use PlayerAdded and CharacterAdded.)
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
08 Aug 2016 10:06 PM
"CharacterAdded"

ew no use a starter character script


Formerly xXTheRobotXx, add 13,349 posts
Report Abuse
DevVince is not online. DevVince
Joined: 08 Nov 2008
Total Posts: 9245
08 Aug 2016 10:08 PM
So you want a local script controlling their appearance?
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
08 Aug 2016 10:10 PM
server scripts work from there too

but you probably didn't know given your scripting level

yeesh


Formerly xXTheRobotXx, add 13,349 posts
Report Abuse
DevVince is not online. DevVince
Joined: 08 Nov 2008
Total Posts: 9245
08 Aug 2016 10:10 PM
With Fe this is how it'll go:

Bob: Hey I got a cool hat!

Jim: Me too, wait you don't you're lying!
Report Abuse
DevVince is not online. DevVince
Joined: 08 Nov 2008
Total Posts: 9245
08 Aug 2016 10:11 PM
People who rate their scripting knowlage on a scale of 0-10 are idiots. xD
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
08 Aug 2016 10:12 PM
@DevVince

i would do nothing of the sort

but if i rated your scripting knowledge i'd just say that you know about as much as the average newbie that comes in here asking for help


Formerly xXTheRobotXx, add 13,349 posts
Report Abuse
DevVince is not online. DevVince
Joined: 08 Nov 2008
Total Posts: 9245
08 Aug 2016 10:12 PM
So your saying to use scriptsxPlayerAmt instead of one script controlling it all?
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
08 Aug 2016 10:13 PM
what are you even talking about

speak english

cretin


Formerly xXTheRobotXx, add 13,349 posts
Report Abuse
DevVince is not online. DevVince
Joined: 08 Nov 2008
Total Posts: 9245
08 Aug 2016 10:14 PM
I like how you say you wouldn't and then do. I do like the fact that you agreed with me because you just did it proving how big of an idiot and hypocrite you are. xD
Report Abuse
DevVince is not online. DevVince
Joined: 08 Nov 2008
Total Posts: 9245
08 Aug 2016 10:15 PM
Sorry you don't know how math works, I won't be replying to you anymore because your a total imbecile. xD
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
08 Aug 2016 10:15 PM
i'm not sure what you're rambling on about but i'm just telling you that characteradded and all that junk is silly given StarterCharacterScripts and how much easier and cleaner it is to use them


Formerly xXTheRobotXx, add 13,349 posts
Report Abuse
troyqaz is not online. troyqaz
Joined: 22 Jan 2009
Total Posts: 1713
08 Aug 2016 10:17 PM
Thanks for the help. Sorry if I offended you by posting twice. I was rewording the question to get more answers, since there was no help the first time.
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
08 Aug 2016 10:18 PM
@OP

put this in a startercharacterscript

local character = script.Parent
local name = character.Name
local player = game.Players:GetPlayerFromCharacter(character)
player.CanLoadCharacterAppearance = false
char.Head.face.Texture = "rbxassetid://110490566"
local shirt = Instance.new('Shirt', char)
shirt.ShirtTemplate = "rbxassetid://416432753"
local pants = Instance.new('Pants', char)
pants.PantsTemplate = "rbxassetid://416432805"
local bodycolors = Instance.new("BodyColors", char)
bodycolors.RightArmColor = BrickColor.new("Really black")
bodycolors.LeftArmColor = BrickColor.new("Really black")
bodycolors.LeftLegColor = BrickColor.new("Really black")
bodycolors.RightLegColor = BrickColor.new("Really black")
bodycolors.TorsoColor = BrickColor.new("Really black")
bodycolors.HeadColor = BrickColor.new("Really black")
end


Formerly xXTheRobotXx, add 13,349 posts
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
08 Aug 2016 10:19 PM
remove the end


Formerly xXTheRobotXx, add 13,349 posts
Report Abuse
troyqaz is not online. troyqaz
Joined: 22 Jan 2009
Total Posts: 1713
08 Aug 2016 10:25 PM
Still having the same issue. Doesn't work at join, works at reset.
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
08 Aug 2016 10:26 PM
oh try LoadCharacter at the end


Formerly xXTheRobotXx, add 13,349 posts
Report Abuse
Wowgnomes is not online. Wowgnomes
Joined: 27 Sep 2009
Total Posts: 26255
08 Aug 2016 10:27 PM
i hate when santa comes and messes with my scripst in da middle of the night!
Report Abuse
troyqaz is not online. troyqaz
Joined: 22 Jan 2009
Total Posts: 1713
08 Aug 2016 10:28 PM
Maaaan I dunno what to say gnome. It worked before haha
Report Abuse
jody7777 is not online. jody7777
Joined: 22 Feb 2009
Total Posts: 1343
08 Aug 2016 10:28 PM
my scriptiong level is over 9000


FOR THE CAUSE
Report Abuse
Lord_Narwhal is not online. Lord_Narwhal
Joined: 05 May 2012
Total Posts: 3242
08 Aug 2016 10:31 PM
wait i have another idea

put an actual bodycolor isntance in starter character scripts
and the shirt and pants

leave the head texture change and stuff before it in


Formerly xXTheRobotXx, add 13,349 posts
Report Abuse
DevVince is not online. DevVince
Joined: 08 Nov 2008
Total Posts: 9245
08 Aug 2016 10:32 PM
That'll result in the same problem. #TheWaysOfAnImbecile
The scripts in that location only clone into the player. Nice failed logic Mr.hypocrite trying to tell me I don't know how they work then turn around and show you don't even understand them. XD!


What you want to do is this:

--Put it in serverscriptservice.
game.Players.PlayerAdded:connect(function(p)
p.CanLoadCharacterAppearance = false
p.CharacterAdded:connect(function(c)

local h = c:WaitForChild'Head'
h:WaitForChild'face'.Texture = 'rbxassetid://110490566'
local shirt = Instance.new('Shirt', c)
shirt.ShirtTemplate = 'rbxassetid://416432753'
local pants = Instance.new('Pants', c)
pants.PantsTemplate = 'rbxassetid://416432805'
local bodycolors = Instance.new('BodyColors', c)
bodycolors.RightArmColor = BrickColor.new'Really black'
bodycolors.LeftArmColor = BrickColor.new'Really black'
bodycolors.LeftLegColor = BrickColor.new'Really black'
bodycolors.RightLegColor = BrickColor.new'Really black'
bodycolors.TorsoColor = BrickColor.new'Really black'
bodycolors.HeadColor = BrickColor.new'Really black'

end
end)
end)
Report Abuse
DevVince is not online. DevVince
Joined: 08 Nov 2008
Total Posts: 9245
08 Aug 2016 10:34 PM
Like I said from the start but narwhale mr big ego thinks he knows everything said I was wrong and said use his way and then proves how little he really knows. xD
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