of     1   

iFordMC
#64051512Friday, March 09, 2012 9:29 PM GMT

local Id = 74352222 --Change 0 to the ID of the item, You do not have to wear the item e.c.t, Hats, T-Shirt, Gear, Shirts, Even Shirts. function onTouched(hit) player = game.Players:GetPlayerFromCharacter(hit.Parent) --Meaning Player shall Get the Player from the Humanoid and finding the humanoid that hit it and its Parent if player.Name == "tehepicford" then --If the above statement is true then it shall proseed if hit.ClassName ~= "Hat" or hit.Parent.Name ~= "BPart" or hit.Parent.Name ~= "GPart" then if game:GetService("BadgeService"):UserHasBadge(player.userId, Id) then --Finding the game and getting the Badge Service checking if the user has the badge. script.Parent.Transparency = 0.6 script.Parent.CanCollide = false wait(4) script.Parent.Transparency = 0 script.Parent.CanCollide = true end else H = player.Name game.Workspace:FindFirstChild(H).Humanoid.Health = 0 end end end script.Parent.Touched:connect(onTouched) Output; 21:27:51 - Workspace.ID V.I.P Door.Script:5: attempt to index global 'player' (a nil value) 21:27:51 - Script "Workspace.ID V.I.P Door.Script", Line 5 21:27:51 - stack end
GrandAwsome
#64051739Friday, March 09, 2012 9:35 PM GMT

Players = {} Players[1] = "tehicford" DB = false kill = true script.Parent.Touched:connect(function(toucher) for i = 1,#Players do if Players[i] == toucher.Parent and DB == false then kill = false DB = true script.Parent.CanCollide = false wait(5) DB = false script.Parent.CanCollide = true end end end if kill == true then kill = false toucher.Parent.Head:Remove() end end)
iFordMC
#64051890Friday, March 09, 2012 9:38 PM GMT

I wanted a TShirt one, Were there is no need to wear it in game =/ So Bump.
GrandAwsome
#64051946Friday, March 09, 2012 9:39 PM GMT

So you want a VIP door where you buy a T-shirt, then uses badge service after that to open a door?
iFordMC
#64052023Friday, March 09, 2012 9:41 PM GMT

Preferably Yes.
nate890
#64052058Friday, March 09, 2012 9:41 PM GMT

    function makeTrue(t)         for i,c in pairs(t) do             t[c]=true         end         return t     end          local allowed=makeTrue{"tehepicford"}     local shirtId=74352222     local deb;          script.Parent.Touched:connect(function(hit)         if game.Players:GetPlayerFromCharacter(hit.Parent) then             local player=game.Players:GetPlayerFromCharacter(hit.Parent)             if allowed[player.Name] or game:GetService("BadgeService"):UserHasBadge(player.userId,shirtId) then                 if not deb then                     deb=true                     script.Parent.Transparency,script.Parent.CanCollide=1,false                     wait(4)                     script.Parent.Transparency,script.Parent.CanCollide=0,true                     deb=false                 end             else                 hit.Parent:BreakJoints()             end         end     end)
Cipheran
#64052127Friday, March 09, 2012 9:43 PM GMT

u have to put in the command bar the grapic which is on roblox wiki, and i have a script thats works so you dont need to wear tshirt, i think thats wat it does
GrandAwsome
#64052194Friday, March 09, 2012 9:44 PM GMT

local Id = 74352222 script.Parent.Touched:connect(function(hit) player = game.Players:GetPlayerFromCharacter(hit.Parent) if hit.ClassName ~= "Hat" or hit.Parent.Name ~= "BPart" or hit.Parent.Name ~= "GPart" then if game:GetService("BadgeService"):UserHasBadge(player.userId, Id) script.Parent.Transparency = 0.6 script.Parent.CanCollide = false wait(4) script.Parent.Transparency = 0 script.Parent.CanCollide = true else H = player.Name hit.Parent.Humanoid.Health = 0 end end)

    of     1