Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I'm trying to make pants change constantly, and it's not working. Help?

Asked by 5 years ago
Edited 5 years ago

I'm trying to do something where it shows off all the outfits I've had constantly. Here is the code. while true do script.Parent.PantsTemplate = rbxassetid://2122608263 wait(1.0) script.Parent.PantsTemplate = rbxassetid://2143534779 wait(1.0) end

1 answer

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

The problem is you didn't wrap the links in quotes, which makes them strings.

while true do 
    script.Parent.PantsTemplate = "rbxassetid://2122608263"
    wait(1)
    script.Parent.PantsTemplate = "rbxassetid://2143534779"
    wait(1)
end
1
I tried doing the script you sent, and it didn't do anything, it just ripped the pants off the character. Sylvenight -9 — 5y
0
You should make sure they are pants templates in the first place. User#19524 175 — 5y
0
I just tried to do this, the pants didn't even change. Did the same exact thing as before. Sylvenight -9 — 5y
0
Nevermind, thank you! Sylvenight -9 — 5y
Ad

Answer this question