|
| 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 |
|
|
|
| 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 |
|
|
| |
|
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 |
|
|
|
| 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 |
|
|
|
| 21 Jul 2012 10:35 PM |
Try posting the script, and we'll try to help.
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 25 Jul 2012 07:59 AM |
We dont fix free models. get out. |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2012 06:13 PM |
| T.T i really dont care what you can or cant do |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 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 |
|
|
|
| 25 Jul 2012 06:21 PM |
Nope, I'm an under-achieving game builder.
† KMXD † |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
| |
|