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 » Scripters
Home Search
 

Re: Help With Regen Script

Previous Thread :: Next Thread 
ethandrew12 is not online. ethandrew12
Joined: 07 May 2011
Total Posts: 28
28 Feb 2016 09:59 PM
So i am making a new game and say I have a sword that is in an area and when you walk over it, you take it. But when someone else comes, i want the item to respawn and allow them to get it as well. I have been able to make the sword respawn, but i could only find a script that would make the sword regen over a period of time, which ultimately makes the sword clone itself in the spot it was obtained, but it keeps respawning, causing a pile of sword to form. I also found a script that would make the previous clone of the sword disappear and create a new one, but it would delete the sword out of the persons inventory. Is there a script that anyone knows that would make the sword regen in the same spot only after its been taken, say, after someone picks it up, it regens in the same spot 1 minute later, without deleting its previous copy and not steadily regenning? Any response is appreciated, thanks.
Report Abuse
ExpensiveGaming is not online. ExpensiveGaming
Joined: 01 Apr 2013
Total Posts: 783
28 Feb 2016 10:13 PM
Make a script that detects if the sword is removed, and then add a new one.


#code print("lol im batman")
Report Abuse
ethandrew12 is not online. ethandrew12
Joined: 07 May 2011
Total Posts: 28
28 Feb 2016 10:14 PM
Any examples of scripts?
Report Abuse
ExpensiveGaming is not online. ExpensiveGaming
Joined: 01 Apr 2013
Total Posts: 783
11 Mar 2016 10:51 PM
(script in a part)

script.Parent.Touched:connect(function(h)
hu = h.Parent:FindFirstChild("Humanoid")
if hu then
-- regenerate script
else
print("Object that touched brick is not a player.")
end

#code print("lol im batman")
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
12 Mar 2016 01:10 AM
lol all u need to do is find a regen script in free mods

local model = workspace.Regen
local backup = model:clone()

while wait(45) do
model:Destroy()
model = backup:clone()
model.Parent = workspace
model:makeJoints()
end


Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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