|
| 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 |
|
|
|
| 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 |
|
|
| |
|
|
| 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
|
  |
| 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 |
|
|