Shomex
|
  |
| Joined: 04 Sep 2012 |
| Total Posts: 690 |
|
|
| 03 Apr 2013 05:43 PM |
function onTouched(Hit) if script.Parent:FindsFirstChild then Workspace.Part.Transparency=1 Workspace.Part.CanCollide=false wait(5) end end print 'Worked' |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2013 05:46 PM |
Connection line?
FindFirstChild* |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2013 05:54 PM |
t = Workspace["Part"] script.Parent.Touched:connect(function(p) if p.Parent:FindFirstChild("Humanoid") then t.Transparency = 1 t.CanCollide = false wait() print("Worked") end end
~One must risk everything to find the truth. Even if the truth isn't what you want it to be, it is better than living a lie.~ |
|
|
| Report Abuse |
|
|
darkggod
|
  |
| Joined: 04 Feb 2011 |
| Total Posts: 8316 |
|
|
| 03 Apr 2013 05:55 PM |
--Made By Darkggod
p = game.Workspace:findFirstChild("") --Put the name of the part in workspace in the quotations.
delay = 10 --Default time I use change it to the amount of time its gonna wait before doing the next thing you want..
script.Parent.Touched:connect(function() if script.Parent:findFirstChild("") then --Dunno what you want to check for so yeah. p.Transparency = 1 p.CanCollide = false wait(delay) end print("Worked") end)
~LS Emperor Darkggod~ |
|
|
| Report Abuse |
|
|
darkggod
|
  |
| Joined: 04 Feb 2011 |
| Total Posts: 8316 |
|
|
| 03 Apr 2013 05:56 PM |
@Ver you forgot you're closing ) on the last end and other small errors.
~LS Emperor Darkggod~ |
|
|
| Report Abuse |
|
|
|
| 03 Apr 2013 05:57 PM |
Dark, my mistake. But I see no other errors in my code. It's simple you know .-.
~One must risk everything to find the truth. Even if the truth isn't what you want it to be, it is better than living a lie.~ |
|
|
| Report Abuse |
|
|
Shomex
|
  |
| Joined: 04 Sep 2012 |
| Total Posts: 690 |
|
|
| 03 Apr 2013 06:05 PM |
--Shomex g=Workspace.Baseplate. p=FindFirstChild w=wait p=print
function onTouched(hit)
end
if script.Parent.p then gTransparency=1 gCanCollide=false wait(5) gTransparecny=0 gCanCollide=true end script.Parenct.Touched:connect(onTouched)
output: Error in script: unexpected symbol near '=' |
|
|
| Report Abuse |
|
|
darkggod
|
  |
| Joined: 04 Feb 2011 |
| Total Posts: 8316 |
|
|
| 03 Apr 2013 06:07 PM |
-- Made By Darkggod
g = game.Workspace:findFirstChild("Baseplate") delay = 5
script.Parent.Touched:connect(function()
g.Transparency = 1 g.CanCollide = false
wait(delay)
g.Transparency = 0 g.CanCollide = true end)
~LS Emperor Darkggod~ |
|
|
| Report Abuse |
|
|
darkggod
|
  |
| Joined: 04 Feb 2011 |
| Total Posts: 8316 |
|
|
| 03 Apr 2013 06:08 PM |
Oh That script is for sho, I fixed it up.
~LS Emperor Darkggod~ |
|
|
| Report Abuse |
|
|