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

how come this wont move straight?

Asked by 10 years ago

im changing a crushing wall script for my Deathrun 2 map (dont mind the strings Wsly wrote them) and it moves kinds tilted, how do i make it move in 1 direction straight?

01-- Waiting Animation
02Decal = script.Parent.Decal
03Locked = game.Workspace.Data.Images.WaitTimers.Locked.Value
04ClockA = game.Workspace.Data.Images.WaitTimers.ClockA.Value
05ClockB = game.Workspace.Data.Images.WaitTimers.ClockB.Value
06ClockC = game.Workspace.Data.Images.WaitTimers.ClockC.Value
07ClockD = game.Workspace.Data.Images.WaitTimers.ClockD.Value
08Duration = 6 -- Duration of the clock animation in seconds
09Platform = script.Parent.Parent.Parent.Platform
10 
11function Activate() -- Trap wordt geactiveerd
12    if script.Parent.BrickColor == BrickColor.new("Camo") then
13        script.Parent.BrickColor = BrickColor.new("Deep orange") -- Check of trap al geactiveerd is
14        for i = 1, 10 do
15        wait(0.025)
View all 38 lines...

1 answer

Log in to vote
0
Answered by 10 years ago
1Platform.CFrame = CFrame.new(Platform.CFrame.p+Vector3.new(NUM,NUM,NUM)
2--Change the numbers to go back or forth
0
You forgot the parentheses that closed the first set, but thanks bubbaman73 143 — 10y
0
doesnt work bubbaman73 143 — 10y
Ad

Answer this question