Ok, I have created a model that I want to make a local model with FE, I just stuck the model in ReplicatedFirst(needs to be first) and then copied it with a local script and put it in workspace. I had a simple rotation script:
script.Parent.Parent.PrimaryPart=script.Parent x=script.Parent.Parent while wait(0.01) do x:SetPrimaryPartCFrame(script.Parent.CFrame*CFrame.Angles(0,0.005,0)) end
that worked just fine as a normal script when I had it on the server. I tried transferring the script to a local script but it doesn't seem to be rotating and it has no output. I even tried sticking a local script in the players scripts to try it but it didn't work either and had no output:
sign=game.Workspace:WaitForChild("Mini Miners") while wait(0.01) do sign:SetPrimaryPartCFrame(script.Parent.CFrame*CFrame.Angles(0,0.005,0)) end
What exactly am I doing wrong here?
Put the model in Server Storage. Create a server script and put it in ServerScriptService. Add a WaitForChild()
so that the server knows when the model exists. Make the Server Script change the model in Workspace. Your problem is that the local script is trying to change Workspace, but that contradicts with the idea of FilteringEnabled, which basically blocks all client actions from replicating to other players.
You need to add a RemoteEvent or RemoteFunction. Basically, have the Local Script fire or invoke the function/event and the server script will rotate it.