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

keyDown then Cframe?

Asked by
NotSoNorm 777 Moderation Voter
9 years ago

I'm having trouble with this script, I'm trying to make it so when "a" is pressed it will spin the brick. Whats wrong?

function keyDown(key)
    if key == "a" then
        script.Parent.CFrame   =   script.Parent.CFrame*CFrame.Angles(0,25,0)
    end
end 
0
Try script.Parent.CFrame = CFrame.new(script.Parent.CFrame*CFrame.Angles(0,25,0)) Since you're defining a new CFrame value. M39a9am3R 3210 — 9y

Answer this question