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

How do I convert this tycoon button script to use ServerStorage?

Asked by
RoyMer 301 Moderation Voter
10 years ago

I need to try make this to load the tycoon parts from the ServerStorage instead of cloning them, but I don't really have an idea what to do, if anyone could guide me maybe, much appreciated.

01-------------------------------------------------------------------------------------------------------------------------
02model = script.Parent.Parent.Parent.ITEMNAMEHERE -- Put Item Name There,Do Not Touch Other Stuff Below The Cost Price.
03Upgradecost = 0   -- Item Price
04-------------------------------------------------------------------------------------------------------------------------
05upgradeStuff = model:clone()
06 
07wait(1)
08 
09model:remove()
10owner = script.Parent.Parent.Parent.OwnerName
11local ting = 0
12 
13function onTouched(hit)
14    if ting == 0 then
15    ting = 1
View all 40 lines...
0
Change first line to | game.ServerStorage.model | "model" is the tycoon part being moved. If you don't want cloning remove the ":clone()" on line 5 ultimate055 150 — 10y
0
thanks it worked :) RoyMer 301 — 10y

1 answer

Log in to vote
-1
Answered by 10 years ago

Honestly if I were you I'd leave it as is.

Ad

Answer this question