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: Scripting Help Needed

Previous Thread :: Next Thread 
stellatheboss is not online. stellatheboss
Joined: 11 Feb 2013
Total Posts: 414
09 Oct 2016 09:58 PM
while true do
wait(1)
if game.Players.LocalPlayer.Character.Shirt.ShirtTemplate == 'rbxassetid://473495589' then

else
game.Players.LocalPlayer.Character.Shirt.ShirtTemplate = 'rbxassetid://473495589'
end
end

Its not working for some reason?
Can anyone help?



Report Abuse
Mason_Myers is not online. Mason_Myers
Joined: 08 Oct 2016
Total Posts: 58
09 Oct 2016 10:10 PM
i believe you are supposed to have something after then so basically you are saying if the player's t-shirt is equal to the asset id then (do nothing)
there is supposed to be something after the 'then' statement



Report Abuse
stellatheboss is not online. stellatheboss
Joined: 11 Feb 2013
Total Posts: 414
09 Oct 2016 10:14 PM
I put a wait there but still didn't work


Report Abuse
Mason_Myers is not online. Mason_Myers
Joined: 08 Oct 2016
Total Posts: 58
09 Oct 2016 10:15 PM
what exactly do you want the script to do?


Report Abuse
stellatheboss is not online. stellatheboss
Joined: 11 Feb 2013
Total Posts: 414
09 Oct 2016 10:18 PM
so if they are wearing the shirt don't change but if the are not change it to what I need them to wear for example in work at a pizza place where it changes you into the unifrom


Report Abuse
caca50 is not online. caca50
Joined: 10 Jul 2011
Total Posts: 2037
09 Oct 2016 10:33 PM
Local Script:

local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:wait()
while wait() do
local shirt = char:FindFirstChild('Shirt')
if shirt then
shirt.ShirtTemplate = 'rbxassetid://473495589'
end
end
Report Abuse
stellatheboss is not online. stellatheboss
Joined: 11 Feb 2013
Total Posts: 414
09 Oct 2016 10:42 PM
Thanks for your hep everyone but got it working


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