Shockfi
|
  |
| Joined: 22 May 2012 |
| Total Posts: 120 |
|
|
| 23 May 2012 11:34 AM |
How would I make this able to where you can't get it a second time like in ROBLOX Adventure III or II
Anyway here's the script:
new = script.Parent:clone()
function onTouched(part) local h = part.Parent:findFirstChild("Humanoid") if (h~=nil) then local thisplr = game.Players:findFirstChild(h.Parent.Name) if (thisplr~=nil) then local stats = thisplr:findFirstChild("leaderstats") if (stats~=nil) then local score = stats:findFirstChild("PowerStars") if (score~=nil) then wait() thisplr.PlayerGui.WarningGUI.Message.Visible = true script.Parent:destroy() score.Value = score.Value + 1
local playr2 = part.Parent:findFirstChild("Torso") playr2.CFrame = CFrame.new(game.Workspace.Checkpoints.Checkpoint3.Position) -- Don't forget to change this. wait(4) new.Parent = game.Workspace thisplr.PlayerGui.WarningGUI.Message.Visible = false
end end end end end
script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
Shockfi
|
  |
| Joined: 22 May 2012 |
| Total Posts: 120 |
|
| |
|
johnhugh
|
  |
| Joined: 26 Mar 2009 |
| Total Posts: 1971 |
|
|
| 23 May 2012 12:09 PM |
Use leaderboard to put a value in the player. If the value = 1, then tool isn't given to player
> There are 2 ways to do it! My way and the right way! |
|
|
| Report Abuse |
|
|
johnhugh
|
  |
| Joined: 26 Mar 2009 |
| Total Posts: 1971 |
|
|
| 23 May 2012 12:10 PM |
Hmm why did i say tool. Meant gui, whatever
> There are 2 ways to do it! My way and the right way! |
|
|
| Report Abuse |
|
|
su8
|
  |
| Joined: 06 Mar 2009 |
| Total Posts: 6334 |
|
|
| 23 May 2012 12:12 PM |
| Before the enter check does the player already have some value "visited" if not then just insert one and do things :PP |
|
|
| Report Abuse |
|
|
Shockfi
|
  |
| Joined: 22 May 2012 |
| Total Posts: 120 |
|
|
| 23 May 2012 12:12 PM |
| Thanks, you guys are the best. |
|
|
| Report Abuse |
|
|