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 » Scripting Helpers
Home Search
 

How I could I make this..

Previous Thread :: Next Thread 
Shockfi is not online. 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 is not online. Shockfi
Joined: 22 May 2012
Total Posts: 120
23 May 2012 12:09 PM
Bump again, >_>
Report Abuse
johnhugh is not online. 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 is not online. 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 is not online. 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 is not online. Shockfi
Joined: 22 May 2012
Total Posts: 120
23 May 2012 12:12 PM
Thanks, you guys are the best.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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