Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I make a seal model I make move?

It really doesn’t move, here’s the script: (also there was no bug in output)

model = game.Workspace.group start = model.A end = model.B position = model.object

while true position.Position = end.Position wait (2) position.Position = start.Position wait (2) end

3 comments

0

Please format your code.

0

wdym?

0

Press the lua button.

1 answer

✓ Accepted answer

Hello there.

Issues:

The issue is that you named a variable "end", which would not work since "end" is a global keyword. Instead, use "endPosition".

Recommendations:

Use local before a variable since variables without "local" are less efficient.

Fixed Code:

local model = workspace.group 
local startPosition = model.A 
local endPosition = model.B
local position = model.object

while true do
	position.Position = endPosition.Position 
	wait(2) 
	position.Position = startPosition.Position 
	wait(2) 
end

1 comment

0

lemme see if it works on studio k

This discussion is preserved as it was. New answers, comments, and votes are closed.