|
| 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 |
|
|
| |
|
|
| 04 Aug 2015 03:06 PM |
| Congratulations posting your code. We definitely can locate your error! |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 04 Aug 2015 03:56 PM |
Still no help? I wonder why. |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 04 Aug 2015 04:11 PM |
| Can someone atleast say WHY am I not getting help? |
|
|
| Report Abuse |
|
|