HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to make a VIP t-shirt door From Roblox Part 2

773 views November 14, 2011 9:01

Watch on YouTube
ChannelJustwatchmyvids

Description from the creator

Script: local user = "Player" -- change this to the name of the person the personal door belongs to
local shirt = "ASSET ID HERE" -- change this to the t-shirt's asset ID

local door = script.Parent
local doorTransparency = door.Transparency

function onTouched(hit)
local character = hit.Parent

if character:FindFirstChild("Humanoid") then
if string.lower(hit.Parent.Name) == string.lower(user) or
hit.Parent.ShirtGraphic.Graphic == shirt then
script.Parent.CanCollide = false
script.Parent.Transparency = 0.4

wait(4) -- The length of time you want the door to be open for

script.Parent.CanCollide = true
script.Parent.Transparency = parent_transparency
else
hit.Parent:BreakJoints() -- remove this line if you want a non-killing door
end
end
end

script.Parent.Touched:connect(onTouched)

About this tutorial

Justwatchmyvids published this 9:01 video tutorial on November 14, 2011. It has been watched 773 times on YouTube.

Duration
9:01
Published
November 14, 2011
Views
773
Likes
1

Tags

Share

This tutorial in other languages