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: Own a House script

Previous Thread :: Next Thread 
nintendoaccf is not online. nintendoaccf
Joined: 20 Nov 2010
Total Posts: 18
21 Jul 2012 09:58 PM
I have a game where you can own houses (I used a free model house owner thing), but after someone buys it and leaves, it still shows that they own it. Does anyone know a script or a free model that I can use so that it will let you reown the house?
Report Abuse
swimguy777 is not online. swimguy777
Joined: 30 May 2009
Total Posts: 17092
21 Jul 2012 10:02 PM
Use the .PlayerRemoving event.
http://wiki.roblox.com/index.php/PlayerRemoving_(Event)

-[::ƧѡÎḾḠΰῩ::]-[::Maker of stuff and Helper of Scripting::]-
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
21 Jul 2012 10:10 PM
Post.
The.
Script.
Please.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
21 Jul 2012 10:16 PM
I
see
Pokemon
Is
back.

Sweet! Like good ol' times :D
Report Abuse
nintendoaccf is not online. nintendoaccf
Joined: 20 Nov 2010
Total Posts: 18
21 Jul 2012 10:34 PM
Uh... how do I add that to the script that is on a free model I already have?
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
21 Jul 2012 10:35 PM
Try posting the script, and we'll try to help.

† KMXD †
Report Abuse
nintendoaccf is not online. nintendoaccf
Joined: 20 Nov 2010
Total Posts: 18
21 Jul 2012 10:39 PM
local ting = 0 --debouncer
owner = script.Parent.Parent.Parent.OwnerName --This is the thing that holds the owners name

function onTouched(hit)

if ting == 0 then --debounce check
ting = 1 --activate debounce
check = hit.Parent:FindFirstChild("Humanoid") --Find the human that touched the button

if check ~= nil then --If a human is found, then

local user = game.Players:GetPlayerFromCharacter(hit.Parent) --Find human among the players
if (user:FindFirstChild("rig") ~= nil) then

local user = game.Players:GetPlayerFromCharacter(hit.Parent) --Find human among the players
local message = Instance.new("Message") --make a message
message.Text = "You already have a house!~" --Put text into the message
message.Parent = user --Display message to new owner only
wait(3) --Wait to let the message display for a while
message:remove() --Remove the message from the new owner

else

local user = game.Players:GetPlayerFromCharacter(hit.Parent) --Find human among the players
owner.Value = hit.Parent.Name --save new owners name for later.

local own = Instance.new("IntValue")
own.Name = "rig"
own.Parent = user


local message = Instance.new("Message") --make a message
message.Text = "You now own this House!~" --Put text into the message
message.Parent = user --Display message to new owner only
wait(3) --Wait to let the message display for a while
message:remove() --Remove the message from the new owner




script.Parent.Parent:remove()

end
end

ting = 0 --remove debounce
end

end

script.Parent.Touched:connect(onTouched) --Start listening for button-touchers.
Report Abuse
nintendoaccf is not online. nintendoaccf
Joined: 20 Nov 2010
Total Posts: 18
21 Jul 2012 10:43 PM
If this was not it, then this is the free model called House Owner (there are many copys of it, so this is one of them) http://www.roblox.com/House-owner-item?id=17213086
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
25 Jul 2012 07:59 AM
We dont fix free models.
get out.
Report Abuse
nintendoaccf is not online. nintendoaccf
Joined: 20 Nov 2010
Total Posts: 18
25 Jul 2012 06:13 PM
T.T i really dont care what you can or cant do
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
25 Jul 2012 06:15 PM
I didnt say what i could or could not do.

I'm saying we help you fix scripts that you made not ones you took from free models.
If you want help dont act like that.
Report Abuse
nintendoaccf is not online. nintendoaccf
Joined: 20 Nov 2010
Total Posts: 18
25 Jul 2012 06:20 PM
Whatever. I was just seeing if the forum was a good place for help for untalented builders/starter scripters, but I guess everyone here is over-acheiving game builders. Ill look it up on the internet.
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
25 Jul 2012 06:21 PM
No we are not.

We wont sit around all day and fix free models.

Make your own scripts and we will be happy to help.
Report Abuse
KnightmareXD is not online. KnightmareXD
Joined: 14 Jul 2009
Total Posts: 11189
25 Jul 2012 06:21 PM
Nope, I'm an under-achieving game builder.

† KMXD †
Report Abuse
nintendoaccf is not online. nintendoaccf
Joined: 20 Nov 2010
Total Posts: 18
25 Jul 2012 06:27 PM
You know what, nevermind. Thanks for trying to help, and once I become an actual scripter, I will remember to come back to this Forum page. Bye
Report Abuse
pokemon771 is not online. pokemon771
Joined: 28 Oct 2008
Total Posts: 8671
25 Jul 2012 06:27 PM
Bye bye.
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