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

use the script in Workspace become to use in ServerStorage ?How can I modify?

Asked by 1 year ago

hello everyone my question: i had creat to tycoon and use the script that in Workspace(Used to increase player money )?but now i use at script in ServerStorage ?and is does not work?so i should how to Revise script?thanks!

script:

local Values = script.Parent.Parent.Parent.Parent.Values

while wait(2) do if Values.OwnerValue.Value ~= nil then Values.MoneyValue.Value += script.MoneyValue.Value end end

another local Values = script.Parent.Parent.Parent.Values local CashValue = script.Parent.Parent.CashierTable.Table.Script.CashValue

if Values.OwnerValue.Value ~= nil then CashValue.Value += 5 end

thanks for reading!

1 answer

Log in to vote
0
Answered by 1 year ago

Put the script in 'ServerScriptService' instead. It's where all server scripts should go. Server Storage will just keep your script there and it will never run, it is just for storing items.

0
Then I would like to ask, because I originally put it in (workspace) to execute, but now it is to (serverstorage), how should I modify it so that the script can be executed? as11df08 5 — 1y
0
Supplement: I use this script to build the script of tycoon in () as11df08 5 — 1y
0
in(workspace) as11df08 5 — 1y
Ad

Answer this question