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
5 years ago
Edited 5 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),

while true do
    wait()
    for i= 1, 50 do
    script.Parent.CFrame = script.Parent.CFrame * CFrame.new(0,0,-0.3)
    wait()
 end

    for i= 1, 50 do
        script.Parent.CFrame = script.Parent.CFrame * CFrame.new(0,0,0.3)
        wait()
    end
end

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 — 5y
0
The part using this script is being inserted locally, this script no longer works now it is a local part. PastDays 108 — 5y
0
Do not ask subjective questions. User#24403 69 — 5y

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?