wsx7
|
  |
| Joined: 04 Mar 2010 |
| Total Posts: 834 |
|
| |
|
wsx7
|
  |
| Joined: 04 Mar 2010 |
| Total Posts: 834 |
|
| |
|
wsx7
|
  |
| Joined: 04 Mar 2010 |
| Total Posts: 834 |
|
| |
|
wsx7
|
  |
| Joined: 04 Mar 2010 |
| Total Posts: 834 |
|
| |
|
wsx7
|
  |
| Joined: 04 Mar 2010 |
| Total Posts: 834 |
|
| |
|
wsx7
|
  |
| Joined: 04 Mar 2010 |
| Total Posts: 834 |
|
| |
|
OzzyFin
|
  |
| Joined: 07 Jun 2011 |
| Total Posts: 3600 |
|
|
| 18 Sep 2014 05:33 AM |
script.Parent.Touched:connect(function() Workspace.Part.Transparency = .5 end |
|
|
| Report Abuse |
|
|
wsx7
|
  |
| Joined: 04 Mar 2010 |
| Total Posts: 834 |
|
| |
|
wsx7
|
  |
| Joined: 04 Mar 2010 |
| Total Posts: 834 |
|
| |
|
OzzyFin
|
  |
| Joined: 07 Jun 2011 |
| Total Posts: 3600 |
|
|
| 18 Sep 2014 05:43 AM |
then u kno nothin 'bout scriptin do u
part = Workspace["partnamehere"]
script.Parent.Touched:connect(function() part.Transparency = .5 end)
if you do, you should know how to check if there is a Humanoid in the part's Parent what touches script.Parent.
obv place the script into the part you want to be touched |
|
|
| Report Abuse |
|
|
|
| 18 Sep 2014 08:35 AM |
enabled = 0 val = 0
function onTouched(part) -- All characters have a Humanoid object -- If the model has one, it is a character -- print("In The Script") local h = part.Parent:findFirstChild("Humanoid") -- Find Humanoids in whatever touched this if (h ~=nil) then -- If there is a Humanoid then -- h.Health = h.MaxHealth -- Set the health to maximum (full healing) if (enabled == 0) then enabled = 1 val = val+0.1 script.Parent.Transparency = val script.Parent.CanCollide = true wait(.1) val = val+0.1 script.Parent.Transparency = 0.1+val script.Parent.CanCollide = true wait(.1) val = val+0.1 script.Parent.Transparency = 0.1+val script.Parent.CanCollide = true wait(.1) val = val+0.1 script.Parent.Transparency = 0.1+val script.Parent.CanCollide =true wait(.1) val = val+0.1 script.Parent.Transparency = 0.1+val script.Parent.CanCollide = true wait(.1) val = val+0.1 script.Parent.Transparency = 0.1+val script.Parent.CanCollide = true wait(.1) val = val+0.1 script.Parent.Transparency = 0.1+val script.Parent.CanCollide = true wait(.1) val = val+0.1 script.Parent.Transparency = 0.1+val script.Parent.CanCollide = true wait(.1) val = val+0.1 script.Parent.Transparency = 0.1+val script.Parent.CanCollide = true wait(.1) script.Parent.Transparency = 1 script.Parent.CanCollide = false wait(1) - CHANGE FOR RESET TIME val = 0 enabled = 0 script.Parent.Transparency = 0 script.Parent.CanCollide = true end end end
script.Parent.Touched:connect(onTouched) -- Make it call onTouched when touched This is a timed one which u can change to your needs |
|
|
| Report Abuse |
|
|