Hey there! I have a model with a script in it that moves the model to a certain position every 5 seconds. But the script doesn’t work if I move the model from Replicated Storage to Workspace . If I don’t move the model form Replicated Storage to Workspace then the script works just fine.
srcipt:
while true do
wait(5)
script.Parent:SetPrimaryPartCFrame(CFrame.new(-7.335, 2.922, -37.965))
end
no script or local script will run in the storage(Server Storage/Replicated Storage).
So what do I do, and remember, this script is being moved to workspace.
Move the script or local script where they are suitable to run.
Why can’t they run in workspace?
Is it a script or local script?
Provide a picture of the explorer.
This script will not run unless this is in the workspace.
AS I have mentioned scripts don’t run in the storage.
Well yeah, but isn’t there a way to make it move from storage to workspace and still run?
Make a script.
Parent it to workspace or wherever scripts are suitable to run such as S.S.S.
write the following code-
local model = game.ReplicatedStorage.Model -- Write the path to your model.
model.Parent = workspace
while true do wait(5)
model:SetPrimaryPartCFrame(CFrame.new(0,0,0)) -- Where you want to the part.
end
It’s not working.
robloxapp-20210905-0331465.wmv (567.9 KB)
It’s supposed to teleport backwards after 5 seconds.