these lines of code i tested already and it didnt error at all when i was testing it but when i came back after a few hours of playing games and tested it again it error me
is this a glitch in roblox studio right now or something?because on paper it seems like i did everything right and plus this is the same exact code that worked before and now didnt work
code
local Model = workspace.Model local IsModelRotating_Left = true
local function RotateTheModel_Left()
Model:SetPrimaryPartCFrame(Model:GetPrimaryPartCFrame()*CFrame.fromEulerAnglesXYZ(0,0.00020051119,0))
end
local function RotateTheModel_Right()
Model:SetPrimaryPartCFrame(Model:GetPrimaryPartCFrame()*CFrame.fromEulerAnglesXYZ(0,-0.00020051119,0))
end
local Rotate_Model = game.ReplicatedStorage.ModelRotation_Begin
local HaltModelRotation = game.ReplicatedStorage.ModelRotation_End
local SteppedEvent
local RService = game:GetService("RunService")
Rotate_Model.OnServerEvent:Connect(function()
SteppedEvent = RService.Stepped:Connect(function()
if IsModelRotating_Left == true then
RotateTheModel_Left()
else
RotateTheModel_Right()
end
end)
end)
HaltModelRotation.OnServerEvent:Connect(function()
SteppedEvent:Disconnect() --this is the line that got the error
if IsModelRotating_Left == true then
IsModelRotating_Left = false
else
IsModelRotating_Left = true
end
end)

4 comments
im calling it a studio bug cuz i placed stepped on the very top of the script and got still errored
i also remembered my script was working before roblox got updated
came back to say thanks cuz you gave me something to start off with
No worries pal, have a good one.