Rhyxus
|
  |
| Joined: 23 Sep 2009 |
| Total Posts: 32 |
|
|
| 12 Mar 2015 04:18 PM |
local Door = script.Parent function onTouch(Brick) local Player = Brick.Parent:findFirstChild("Humanoid") if(Player ~= nil) then if Player.Parent.Torso.roblox.Texture == "http://www.roblox.com/asset/?version=1&id=152677714" then Door.CanCollide = false Door.Transparency = 0.5 Door.BrickColor = BrickColor:Random() wait(2) Door.Cancollide = false Door.Transparency = 0 Door.BrickColor = BrickColor:Random() else Player.Health = 0 end end end Door.Touched:connect(onTouch)
This is a VIP door, but just kills me when i touch it even when I have the T-shirt under the Teaxture. idk why it keeps killing meh |
|
|
| Report Abuse |
|
|
|
| 12 Mar 2015 04:19 PM |
First thing I noticed
is the & supposed to be there?
remove it and try again
those four years of wumbology are really paying off |
|
|
| Report Abuse |
|
|
Rhyxus
|
  |
| Joined: 23 Sep 2009 |
| Total Posts: 32 |
|
|
| 12 Mar 2015 04:21 PM |
| For a weird reason it's not showing that in the script in studio. Just on this post it has that. |
|
|
| Report Abuse |
|
|
Rhyxus
|
  |
| Joined: 23 Sep 2009 |
| Total Posts: 32 |
|
|
| 12 Mar 2015 04:23 PM |
| I found a lower-case C but that did not help the killing part. |
|
|
| Report Abuse |
|
|
AnimeWiki
|
  |
| Joined: 26 Oct 2014 |
| Total Posts: 460 |
|
|
| 12 Mar 2015 04:23 PM |
--script.Parent = door ok ?
deb = false script.Parent.Touched:connect(function(hit) if hit.Parent:FindFirstChild("Humanoid") ~=nil and deb== false then deb = true script.Parent.CanCollide = false for i=5,10 do script.Parent.Transparency = i/10 wait() end for i=10,5,-1 do script.Parent.Transparency = i/10 wait() end script.Parent.CanCollide = true wait(1) deb = false end
end) |
|
|
| Report Abuse |
|
|
Rhyxus
|
  |
| Joined: 23 Sep 2009 |
| Total Posts: 32 |
|
|
| 12 Mar 2015 04:28 PM |
It's for sure something wrong with this line if Player.Parent.Torso.roblox.Texture == "http://www.roblox.com/asset/?version=1&id=152677714" then |
|
|
| Report Abuse |
|
|
AnimeWiki
|
  |
| Joined: 26 Oct 2014 |
| Total Posts: 460 |
|
|
| 13 Mar 2015 05:53 AM |
try this
for k,v in pairs (Torso:GetChildren()) do if v.ClassName == "TShirt" then -- i am not sure what is classname for tshirts if v.Texture == "link" then
end end end |
|
|
| Report Abuse |
|
|
Ghorre
|
  |
| Joined: 15 Feb 2015 |
| Total Posts: 160 |
|
|
| 13 Mar 2015 07:02 AM |
| Shouldn't it be Player.Torso instead of Player.Parent.Torso ? |
|
|
| Report Abuse |
|
|