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: Help owner button.

Previous Thread :: Next Thread 
jaredvaldez2 is not online. jaredvaldez2
Joined: 01 Apr 2008
Total Posts: 658
13 Jul 2011 12:13 AM
function onTouched(part)
local h = part.Parent:findFirstChild("Humanoid")
if h~=nil then
script.Parent.Parent.Name = h.Parent.Name.. "'s House."
local player = game.Players:playerFromCharacter(h.Parent)
if player == nil then
script.Parent.Name = "Un-Owned"
else
print("The Owner Is Still In The Game")
end
end
end

script.Parent.Touched:connect(onTouched)

Can you make it that when the player leaves it will make the button available again to become the owner.
Report Abuse
crazyman32 is online. crazyman32
Joined: 13 Apr 2008
Total Posts: 18027
13 Jul 2011 12:18 AM
Are you actually making your own games now?
Report Abuse
jaredvaldez2 is not online. jaredvaldez2
Joined: 01 Apr 2008
Total Posts: 658
13 Jul 2011 12:19 AM
yes...
Report Abuse
Pichu7245 is not online. Pichu7245
Joined: 17 May 2009
Total Posts: 16489
13 Jul 2011 12:20 AM
NO REQUESTS
Report Abuse
jaredvaldez2 is not online. jaredvaldez2
Joined: 01 Apr 2008
Total Posts: 658
13 Jul 2011 12:22 AM
No one asked you.
Report Abuse
Pichu7245 is not online. Pichu7245
Joined: 17 May 2009
Total Posts: 16489
13 Jul 2011 12:23 AM
You asked for a script. Anyone who enters this thread and reads it has received the request.
Report Abuse
NINJAKID09 is not online. NINJAKID09
Joined: 27 Aug 2009
Total Posts: 14392
13 Jul 2011 12:24 AM
NO requests!
Report Abuse
Ducksen is not online. Ducksen
Joined: 13 Jan 2011
Total Posts: 11273
13 Jul 2011 12:31 AM
LOVE U JARED.
Report Abuse
Ducksen is not online. Ducksen
Joined: 13 Jan 2011
Total Posts: 11273
13 Jul 2011 12:32 AM
Wait you're making a tycoon? I can help you.
Report Abuse
Kirbydlx is not online. Kirbydlx
Joined: 26 Dec 2009
Total Posts: 5932
13 Jul 2011 12:34 AM
@crazy

rofl
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