I am currently doing a pet system, and I am running a remote event inside a RenderStepped event in this LocalScript;
game:GetService("RunService").RenderStepped:Connect(function()
game:GetService("ReplicatedStorage"):WaitForChild("PetAngle"):FireServer(true, script.Parent.Parent.Character.Pet1, script.Parent.Parent.Character)
end)
But unfortunately, I keep getting this error;
Listener (Server Script):
game:GetService("ReplicatedStorage"):WaitForChild("EquipPet").OnServerEvent:Connect(function(p, req, pettype, plr)
if req then
plr[pettype].CFrame = plr[pettype].CFrame*CFrame.Angles(0,.05, 0)
end
end)
I know, topics like these exist. But they do not help me in any way.