|
| 19 Dec 2011 03:57 PM |
is this a good script? ------------------------------------------------------------------------------------------------------------------------- model = script.Parent.Parent.Parent.Drop1 --This is the MODELNAME. you made a desk in the instructions SO name the part called MODELNAME to "Desk". Then change price to what you want. Upgradecost = 0 -- Replace The Price You Want Where It Says 100 ------------------------------------------------------------------------------------------------------------------------- upgradeStuff = model:clone()
wait(1)
model:remove() owner = script.Parent.Parent.Parent.OwnerName local ting = 0
function onTouched(hit) if ting == 0 then ting = 1 check = hit.Parent:FindFirstChild("Humanoid")
if check ~= nil then if hit.Parent.Name == owner.Value then local user = game.Players:GetPlayerFromCharacter(hit.Parent) local stats = user:findFirstChild("leaderstats")
if stats ~= nil then local cash = stats:findFirstChild("Cash") if cash.Value > (Upgradecost-1) then
cash.Value = cash.Value - Upgradecost upgradeStuff.Parent = script.Parent.Parent.Parent script.Parent.Parent:remove()
end end end end
ting = 0 end end
script.Parent.Touched:connect(onTouched)
|
|
|
| Report Abuse |
|
|
dirk29
|
  |
| Joined: 26 May 2010 |
| Total Posts: 1142 |
|
|
| 19 Dec 2011 04:00 PM |
Test it and see if it works. Good free model though.
*dirk29 - Expert Scripter* |
|
|
| Report Abuse |
|
|
|
| 19 Dec 2011 04:06 PM |
| dis is from my alts alts alts alts alts alts alt which is hard to find i have a hard time remembering my sis changed the pass and got it banned not free. |
|
|
| Report Abuse |
|
|