Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i move a local part? [closed]

Asked by
PastDays 108
6 years ago
Edited 6 years ago

So in my game I have moving parts, I was using parts to be c-framed on the server but i am finding that lag really affects them (causes juddering),

01while true do
02    wait()
03    for i= 1, 50 do
04    script.Parent.CFrame = script.Parent.CFrame * CFrame.new(0,0,-0.3)
05    wait()
06 end
07 
08    for i= 1, 50 do
09        script.Parent.CFrame = script.Parent.CFrame * CFrame.new(0,0,0.3)
10        wait()
11    end
12end

This script doesn’t work when the part is inserted locally, How can i move a local part?

0
Is the part being inserted by a server script, a local script, or is the part already there when the game runs? vissequ 105 — 6y
0
The part using this script is being inserted locally, this script no longer works now it is a local part. PastDays 108 — 6y
0
Do not ask subjective questions. User#24403 69 — 6y

Closed as Primarily Opinion-Based by User#24403

This question has been closed because it is a discussion about a topic focused on diverse opinions, which isn't a good fit for our Q&A format.

Why was this question closed?