flogau62
|
  |
| Joined: 15 Aug 2015 |
| Total Posts: 18 |
|
|
| 17 Jun 2017 10:28 AM |
So I have a script that moves the laser, and I have a script that restarts the laser every 20 seconds but the problem is that after the restart the laser doesnt move anymore,
Here is the script that restarts it: local regenTime = 20
local model = script.Parent
if model ~= workspace then
local backup = model:clone() while true do wait(regenTime)
model:Destroy()
--Copy the backup model = backup:clone() model.Parent = game.Workspace model:makeJoints() end
end
And here is the script that moves the laser: p=game.Workspace.Bluelaser4
for i=1,400 do p.CFrame=p.CFrame+Vector3.new(.5,0,0) wait() end
If someone knows the problem can someone help please?
|
|
|
| Report Abuse |
|
|
| 17 Jun 2017 10:31 AM |
makeJoints is an invalid function of a model instance.
It's supposed to be MakeJoints. |
|
|
| Report Abuse |
|
flogau62
|
  |
| Joined: 15 Aug 2015 |
| Total Posts: 18 |
|
| |