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: Laser Script Problem

Previous Thread :: Next Thread 
flogau62 is not online. 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
Gomlsauresrex is not online. Gomlsauresrex
Joined: 25 Mar 2016
Total Posts: 3588
17 Jun 2017 10:31 AM
makeJoints is an invalid function of a model instance.

It's supposed to be MakeJoints.
Report Abuse
flogau62 is not online. flogau62
Joined: 15 Aug 2015
Total Posts: 18
17 Jun 2017 11:07 AM
Still doesnt move ;/
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