generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: why wont this work?

Previous Thread :: Next Thread 
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
15 May 2012 01:17 PM
local ting = 0
owner = script.Parent.Parent.Parent.OwnerName
function onTouched(hit)
if ting == 0 then
ting = 1
local check = hit.Parent:FindFirstChild("Humanoid")
if check ~= nil then
local thisplr = game.Players:findFirstChild(hit.Parent.Name)
if (thisplr~=nil) then
local ownstyc = thisplr:findFirstChild("Tycoon")
if (ownstyc~=nil) then
if ownstyc.Value == 0 then
ownstyc.Value = 1
owner.Value = thisplr.Name
local message = Instance.new("Message")
message.Text = "You Now own a Tycoon"
message.Parent = thisplr
wait(3)
message:remove()
script.Parent.Parent:remove()
elseif ownstyc.Value == 1 then
local message = Instance.new("Message")
message.Text = "You Aready own a Tycoon"
message.Parent = thisplr
wait(3)
message:remove()
end
end
end
end
ting = 0
end
end

script.Parent.Touched:connect(onTouched)
Report Abuse
GradientZ is not online. GradientZ
Joined: 26 Apr 2012
Total Posts: 2173
15 May 2012 02:10 PM
What are we actually looking to fix here?
Report Abuse
PRESTIGIOUSaLEGEND is not online. PRESTIGIOUSaLEGEND
Joined: 16 Apr 2011
Total Posts: 1765
15 May 2012 02:13 PM
nvmd i did it :P
Report Abuse
GradientZ is not online. GradientZ
Joined: 26 Apr 2012
Total Posts: 2173
15 May 2012 02:16 PM
Go to BH rather than SH, You always post something, then fix it.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image