generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: Need help with my script

Previous Thread :: Next Thread 
Rhyxus is not online. 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
memorycode is not online. memorycode
Joined: 24 Sep 2011
Total Posts: 3322
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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image