legofan4364j Forum
Please login to access special member only features!
legofan4364j Forum

Welcome to the Gaming Forum!
 
HomeHome  PortalPortal  CalendarCalendar  FAQFAQ  SearchSearch  MemberlistMemberlist  UsergroupsUsergroups  GalleryGallery  RegisterRegister  Log inLog in  
Top posters
jam12467911 (786)
 
lordfalcon (639)
 
legofan4364j (442)
 
worldindusteriesrock (427)
 
Popsicle77 (301)
 
bulbusar (174)
 
Theman1635 (168)
 
nimblebobo2 (97)
 
matthewbe (36)
 
FearKross (23)
 
Who is online?
In total there is 1 user online :: 0 Registered, 0 Hidden and 1 Guest

None

Most users ever online was 27 on Thu Apr 29, 2010 2:31 am

Share | 
 

 Tycoon Button Script

Go down 

Did it help you?
Yes
0%
 0% [ 0 ]
No
50%
 50% [ 1 ]
A Little Bit
0%
 0% [ 0 ]
Not at All
0%
 0% [ 0 ]
Never Tried it
50%
 50% [ 1 ]
Total Votes : 2
 

AuthorMessage
Guest
Guest



PostSubject: Tycoon Button Script   Mon Dec 29, 2008 2:37 pm

--[[To make a Tycoon Work put this script in a brick and group it
with another model and put the model name where you see the word shop]]

model = script.Parent.Parent.Parent.Shop
Upgradecost = 300
--Dont mess with anything pass this line
-----------------------------------------------------------------------------

upgradeStuff = model:clone()

model:remove()

local ting = 0

function onTouched(hit)
if ting == 0 then
ting = 1
check = hit.Parent:FindFirstChild("Humanoid")

if check ~= nil then
local user = game.Players:GetPlayerFromCharacter(hit.Parent)
local stats = user:findFirstChild("leaderstats")

if stats ~= nil then
local cash = stats:findFirstChild("Money")--change the Money to what it is Money/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

ting = 0
end
end

script.Parent.Touched:connect(onTouched)
Back to top Go down
Popsicle77
Poster Lv. 3
Poster Lv. 3
avatar

Number of posts : 301
Age : 24
About Me : I'm your tech guy.
Warning: :
0 / 1000 / 100

Registration date : 2008-12-21

PostSubject: Re: Tycoon Button Script   Mon Dec 29, 2008 6:33 pm

I've never tried it, so i added in that answer.
Back to top Go down
View user profile http://www.roblox.com/User.aspx?ID=960685
worldindusteriesrock
Poster Lv. 3
Poster Lv. 3
avatar

Number of posts : 427
Age : 21
About Me : Im 12 Love the color blue, watching TV, playing football.My favs shows are Family guy, south park, simpsons, and futurama laso my fav anime is bleach naruto and of course gundam [New Season]
Warning: :
80 / 10080 / 100

Registration date : 2008-12-12

PostSubject: Re: Tycoon Button Script   Tue Dec 30, 2008 6:46 pm

worldindusteriesrock Its SOOO! Easeh!
Back to top Go down
View user profile http://www.roblox.com/
Sponsored content




PostSubject: Re: Tycoon Button Script   

Back to top Go down
 
Tycoon Button Script
Back to top 
Page 1 of 1
 Similar topics
-
» No start fight button !?
» Chess Script
» Another Cinderella Story Movie Script
» Firefox 4 - Mybrute stuff
» JavaScript Chess

Permissions in this forum:You cannot reply to topics in this forum
legofan4364j Forum :: Forum :: ROBLOX :: Help Center :: Scripting-
Jump to: