Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
BenBonez
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 19362 |
|
| |
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 13 Oct 2011 08:06 AM |
| LocalScripts only works in player or player childs |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
BenBonez
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 19362 |
|
| |
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 13 Oct 2011 08:13 AM |
gui = script.ScreenGui db = true
function MezaRidge(hit) local plr = hit.Parent local torso = plr:FindFirstChild("Torso") local plrgui = game.Players:GetPlayerFromCharacter(plr).PlayerGui if db == true then db = false gui:Clone().Parent = plrgui torso.CFrame = CFrame.new(431.5, 70, 465.5) wait(3) db = true end end
script.Parent.Touched:connect(MezaRidge)
|
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 13 Oct 2011 08:22 AM |
...That work unless another part (what is not part of character) touches that |
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 13 Oct 2011 08:27 AM |
Try this:
gui = script.ScreenGui db = true
function MezaRidge(hit) local plr = hit.Parent if plr:IsA("Model") then local torso = plr:FindFirstChild("Torso") --local plrgui = game.Players:GetPlayerFromCharacter(plr).PlayerGui if db == true then db = false --gui:Clone().Parent = plrgui torso.CFrame = CFrame.new(431.5, 70, 465.5) wait(3) db = true end end end
script.Parent.Touched:connect(MezaRidge)
|
|
|
| Report Abuse |
|
|
Trioxide
|
  |
| Joined: 29 Mar 2011 |
| Total Posts: 32902 |
|
| |
|