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

How to make a VIP door with a Shirt or T-shirt?

Asked by 10 years ago

Hi, I have trouble making a VIP door with a Shirt or T-shirt. Possible, without the shirt or T-shirt, the VIp (POSSIBLY) will get destroyed and people can go in for free. But the problem is, How would I design the shirt or t-shirt to go match the VIP door and go inside?

1
Have you tried anything yet? You should post your code and be more specific about what concepts you're having trouble with. Asking for someone to make it for you is not the point behind Q&A. User#11893 186 — 10y
0
Yes I did tried, and if I mean like I want someone to make it for me, I didn't mean that. i just needed a little help. Roboy5857 20 — 10y

1 answer

Log in to vote
1
Answered by
Shawnyg 4330 Trusted Badge of Merit Snack Break Moderation Voter Community Moderator
10 years ago

To find the ID, make sure you're wearing the shirt/tshirt. Go into Studio, click New (Or edit a place), Tools>Test>Play Solo , Open up Explorer>Workspace>Player1>Shirt> OR for tshirt: Workspace>Player1>Shirt Graphic

Tshirt script:

tshirtid = "http://www.roblox.com/asset/?id="--fill in the numbers after the equal sign
script.Parent.Touched:connect(function(hit) --this goes inside the brick
    if hit.Parent:findFirstChild("Humanoid") then
        if hit.Parent:findFirstChild("Shirt Graphic") then
            if hit.Parent["Shirt Graphic"].Graphic == tshirtid then
                script.Parent.CanCollide = false
                script.Parent.Transparency = 0.7
                wait(0.3)
                script.Parent.CanCollide = true
                script.Parent.Transparency = 0
            else
                if hit.Parent:findFirstChild("Humanoid") then
                    hit.Parent:BreakJoints()
                end
            end
        end
    end
end)

Shirt script:

shirtid = "http://www.roblox.com/asset/?id="--fill in the numbers after the equal sign
script.Parent.Touched:connect(function(hit) --this goes inside the brick
    if hit.Parent:findFirstChild("Humanoid") then
        if hit.Parent:findFirstChild("Shirt") then
            if hit.Parent.Shirt.ShirtTemplate == shirtid then
                script.Parent.CanCollide = false
                script.Parent.Transparency = 0.7
                wait(0.3)
                script.Parent.CanCollide = true
                script.Parent.Transparency = 0
            else
                if hit.Parent:findFirstChild("Humanoid") then
                    hit.Parent:BreakJoints()
                end
            end
        end
    end
end)

-Thank me by accepting this answer/bumping up my reputation!

Ad

Answer this question