I have a keycode and when you press r it rotates the part CFrame but for some reason its not rotating, but its printing out the print statement in the output.
Client Side
elseif WC.configure.Actived and input.KeyCode == Enum.KeyCode.R then
wall.CFrame = wall.CFrame * CFrame.Angles(0,math.rad(90),0)
Services.ReplictedStorage.RemoteEvents.WallRotation:FireServer()
end
Server Side
Services.ReplictedStorage.RemoteEvents.WallRotation.OnServerEvent:Connect(function(Player)
if wc.configure.Rotation == false then
wc.configure.Rotation = true
Player.Character:FindFirstChild("PlayerInfo").Rotation.Value = true
print("Turned 90 degree")
else
wc.configure.Rotation = false
Player.Character:FindFirstChild("PlayerInfo").Rotation.Value = false
print("Back to normal roation")
end
end)