Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Self Reset system will not work at all, can you help?

Asked by 2 years ago

I have a cash register that resets itself every five seconds (it has a duplicate of itself in server storage) for some reason i wait 5 seconds and it doesnt reset, why?

local ReplicatedStorage = game:GetService("ReplicatedStorage")

local Self = ReplicatedStorage:FindFirstChild("Cash Register1")

while true do
    wait(5)
local clone = Self:Clone()
    clone.Parent = game.Workspace

    script.Parent:Destroy()
end
0
Can i see your workspace DefinitelyNotTronix 19 — 2y
0
You look for self in replicateratorage, not in server storage SuperPuiu 497 — 2y

1 answer

Log in to vote
0
Answered by 2 years ago

You mentioned the register is located under the ServerStorage; yet you're trying to get it from ReplicatedStorage. That might be the issue.

Ad

Answer this question