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: Need shirt texture help

Previous Thread :: Next Thread 
Epiczombiekiller1998 is not online. Epiczombiekiller1998
Joined: 07 Aug 2011
Total Posts: 4918
04 Aug 2015 02:34 PM
In my game, the player has a Value that turns the shirt texture into a different one at each value. When a player enters a game, if he/she already has a shirt then it will get removed and replaced with a new shirt with the same class but a different name and a script inside it that turns the texture to to the texture at each value in every 0.2 seconds. I wasted 3-4 hours of my life making that script, like always, it worked in solo mode, but NOT in multiplayer! I got the texture assets by going to the catalog and putting the same number subtracted by 1 there. I ran commands in-game chaning the value but no texture appeared! In fact, it didnt even start to load anything (usually my character turns grey everywhere when it loads)!
Report Abuse
Epiczombiekiller1998 is not online. Epiczombiekiller1998
Joined: 07 Aug 2011
Total Posts: 4918
04 Aug 2015 02:57 PM
Bump
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
04 Aug 2015 03:06 PM
Congratulations posting your code. We definitely can locate your error!
Report Abuse
Epiczombiekiller1998 is not online. Epiczombiekiller1998
Joined: 07 Aug 2011
Total Posts: 4918
04 Aug 2015 03:13 PM
This is a shortened version, there is a script that clones a shirt with this script into the player's character, its disabled, but the cloned version in the character isnt. Even if I change the texture manually, its immediatly supposed to switch back to the one according to the value but not even that works! I checked the server log and it showed no errors. (Oops, this is the pants version but pretty much the same)

while wait (0.2) do
local pla = game.Players:FindFirstChild(script.Parent.Parent.Name)
if pla ~= nil then
if pla.PantsValue.Value == 0 then
script.Parent.PantsTemplate = " "
end
if pla.PantsValue.Value == 1 then
script.Parent.PantsTemplate = "http://roblox.com/asset/?id=129458425"
end
if pla.PantsValue.Value == 2 then
script.Parent.PantsTemplate = "http://roblox.com/asset/?id=1972086"
end
if pla.PantsValue.Value == 3 then
script.Parent.PantsTemplate = "http://roblox.com/asset/?id=144076759"
end
end
end
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
04 Aug 2015 03:14 PM
Congratulations on posting your full code! The context isn't important and we all wanted to replicate your game for our own uses!
Report Abuse
Epiczombiekiller1998 is not online. Epiczombiekiller1998
Joined: 07 Aug 2011
Total Posts: 4918
04 Aug 2015 03:16 PM
Get out troll. I don't think anyone would be needing that short and simple script for their own uses.
Report Abuse
Epiczombiekiller1998 is not online. Epiczombiekiller1998
Joined: 07 Aug 2011
Total Posts: 4918
04 Aug 2015 03:38 PM
I tried the .Changed function too! It did nothing! The same problem! All I want to know is that do I have to do something different with the template property?
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
04 Aug 2015 03:56 PM
Still no help?
I wonder why.
Report Abuse
Epiczombiekiller1998 is not online. Epiczombiekiller1998
Joined: 07 Aug 2011
Total Posts: 4918
04 Aug 2015 04:02 PM
Ugh, I tried almost exacly the same script with the hat mesh and it worked perfectly fine!
Report Abuse
Epiczombiekiller1998 is not online. Epiczombiekiller1998
Joined: 07 Aug 2011
Total Posts: 4918
04 Aug 2015 04:11 PM
Can someone atleast say WHY am I not getting help?
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