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
 

Re: Help with regen script

Previous Thread :: Next Thread 
awesomeM3 is not online. awesomeM3
Joined: 23 Aug 2011
Total Posts: 1992
02 Dec 2012 03:56 AM
Player = game.Players.LocalPlayer I don't know what to put here (I want it so that when LocalPlayer.leave.game.regen.

When LocalPlayer.join.game.regen?

I have a regen script so here it is: (P.S it's not mying but it works It's in my tycoon starter kit thingy)

model = script.Parent.Factory
backup = model:clone()

function Regen()
model:remove()
wait(1)
model = backup:clone()
model.Parent = script.Parent
model:makeJoints()
end

while true do
wait(1.5)
if script.Parent.Factory.OwnerName.Value ~= "" then
if not game.Players:FindFirstChild(script.Parent.Factory.OwnerName.Value) then
Regen()

end
end
end


Or I was thinking a screen gui that (Screen gui would say "IS YOUR TYCOON BROKEN?")

When.LocalPlayer.clicks.regen???


Please help??
Report Abuse
awesomeM3 is not online. awesomeM3
Joined: 23 Aug 2011
Total Posts: 1992
02 Dec 2012 04:08 AM
Bump...... Please.......??
Report Abuse
awesomeM3 is not online. awesomeM3
Joined: 23 Aug 2011
Total Posts: 1992
02 Dec 2012 04:31 AM
BUMP BUMpo


soMEONE plz help...........

Or imma shootttttttttr mah head of
Report Abuse
awesomeM3 is not online. awesomeM3
Joined: 23 Aug 2011
Total Posts: 1992
02 Dec 2012 07:04 AM
Please help anyone?
Report Abuse
madiik is not online. madiik
Joined: 10 Feb 2009
Total Posts: 625
02 Dec 2012 07:14 AM
Try using this, (TAKEN FROM RANDOM MODEL)
game.Players.PlayerAdded:connect(Entered)
Report Abuse
awesomeM3 is not online. awesomeM3
Joined: 23 Aug 2011
Total Posts: 1992
02 Dec 2012 07:25 AM
game.Players.PlayerAddded:connect
model = script.Parent.Factory
backup = model:clone()

function Regen()
model:remove()
wait(1)
model = backup:clone()
model.Parent = script.Parent
model:makeJoints()
end
Report Abuse
TheAwesomenessDude is not online. TheAwesomenessDude
Joined: 17 Jul 2011
Total Posts: 11602
02 Dec 2012 07:31 AM
game.Players.PlayerAddded:connect


Should be


game.Players.PlayerAdded:connect(function(args)
--code
end)
Report Abuse
awesomeM3 is not online. awesomeM3
Joined: 23 Aug 2011
Total Posts: 1992
02 Dec 2012 07:33 AM
Can you write that up as what is args? I've never heard of it...
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