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: Lock doors?

Previous Thread :: Next Thread 
fishy1000 is not online. fishy1000
Joined: 26 May 2008
Total Posts: 497
11 Jun 2014 08:51 PM
So you guys ever played Julius's, Different Town of Robloxia?
You know how you can lock doors?

How would I go and make that too?
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
11 Jun 2014 08:53 PM
No I have not.
Explain what it does exactly.
Report Abuse
fishy1000 is not online. fishy1000
Joined: 26 May 2008
Total Posts: 497
11 Jun 2014 08:54 PM
So basically you own a property and you can choose to lock your house doors and unlock them.

And it just locks from other players (including you) until you unlock it.

I'm also looking for a script that tells which player owns the property.
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
11 Jun 2014 08:55 PM
...
Do you even know how to script?
Report Abuse
fishy1000 is not online. fishy1000
Joined: 26 May 2008
Total Posts: 497
11 Jun 2014 08:56 PM
Nope. Not at all.
That's why I'm here sir.
Report Abuse
robertjh12 is not online. robertjh12
Joined: 24 Feb 2008
Total Posts: 601
11 Jun 2014 09:01 PM
1 Give each door a value for "Lock" number. Give each player a key with the same value as "Key" number. Key could be gui as well.

2 Make door vip door for individual players.
Report Abuse
fishy1000 is not online. fishy1000
Joined: 26 May 2008
Total Posts: 497
11 Jun 2014 09:02 PM
I'd rather just make it way easier like Julius does.
Report Abuse
fishy1000 is not online. fishy1000
Joined: 26 May 2008
Total Posts: 497
11 Jun 2014 09:11 PM
Bump, still need this.
Report Abuse
lampwnage121 is not online. lampwnage121
Joined: 20 Oct 2012
Total Posts: 4285
11 Jun 2014 09:23 PM
"I'd rather just make it way easier like Julius does."
You don't even script thus you're not making it.
This forum is for debugging, not requesting code.
If you want handouts, go elsewhere.
Report Abuse
fishy1000 is not online. fishy1000
Joined: 26 May 2008
Total Posts: 497
12 Jun 2014 12:23 PM
If you're just going to argue, you go somewhere else you 2012'er.
Report Abuse
heroesp is not online. heroesp
Joined: 23 Feb 2011
Total Posts: 3214
12 Jun 2014 12:25 PM
It just checks if you own the house and if you do it changes CanCollide value to whatever you chose. You can take a model of those houses at the original welcome to the town of robloxia by 1dev2.

http://www.roblox.com/Welcome-to-the-Town-of-Robloxia-place?id=20723719
Report Abuse
lego555444 is not online. lego555444
Joined: 21 Sep 2008
Total Posts: 1383
12 Jun 2014 12:32 PM
Yey 2008 people!
Report Abuse
fishy1000 is not online. fishy1000
Joined: 26 May 2008
Total Posts: 497
13 Jun 2014 01:40 PM
This makes no sense.
I copied the scripts.

Can someone help me out by taking a look at my place and the house that I'm editing with the script?

It's saved right at the house that says "BuyHouse". Which is the house that's not working. when I walk into it, it should remove my 500 dollars and say I'm the owner. But it does nothing.

http://www.roblox.com/The-Greenwood-Town-2-W-I-P-place?id=160274667
Report Abuse
fishy1000 is not online. fishy1000
Joined: 26 May 2008
Total Posts: 497
13 Jun 2014 02:47 PM
Anyone ?
Report Abuse
fishy1000 is not online. fishy1000
Joined: 26 May 2008
Total Posts: 497
13 Jun 2014 08:02 PM
Still looking..
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
13 Jun 2014 08:05 PM
Nobody cares what year you joined in.
I hope you know that since you got this idea from Julius' game, it must be in free models. Explore.
Report Abuse
purplescheer9 is not online. purplescheer9
Joined: 16 Jan 2011
Total Posts: 3852
13 Jun 2014 08:06 PM
I think it would help if you'd learn to script first.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
13 Jun 2014 08:06 PM
'08 people are dumb.

And just set the canccollide property to true
Report Abuse
T1tan44 is not online. T1tan44
Joined: 08 Jun 2014
Total Posts: 64
13 Jun 2014 08:06 PM
Set CanCollide to false when its unlocked and true when its locked.Make sure u have a door brick in the workspace named "Door"

wait(0.1)
door = workspace.Door
locked = false

if (locked == false) then
door.CanCollide = true
end


if (locked == true) then
door.CanCollide = false
end
Report Abuse
T1tan44 is not online. T1tan44
Joined: 08 Jun 2014
Total Posts: 64
13 Jun 2014 08:08 PM
And learn to script first
Report Abuse
fishy1000 is not online. fishy1000
Joined: 26 May 2008
Total Posts: 497
13 Jun 2014 08:36 PM
I don't think you guys understand.
I'm looking for a way to press a button to lock it but only the house owner can lock and unlock it.
Report Abuse
fishy1000 is not online. fishy1000
Joined: 26 May 2008
Total Posts: 497
14 Jun 2014 02:15 PM
Still looking for this.
Report Abuse
LegendaryAccount is not online. LegendaryAccount
Joined: 02 Jun 2010
Total Posts: 13193
14 Jun 2014 02:18 PM
stop looking for it
Report Abuse
singleroblox is not online. singleroblox
Joined: 04 Apr 2012
Total Posts: 450
14 Jun 2014 02:27 PM
Gui Button script below. Insert it into the TextButton and learn.

Housedoor = game.Workspace.Door1
DoorsOpen = false

function ClickButton()
if not DoorsOpen then
DoorsOpen = true
HouseDoor.CanCollide = false
else if DoorsOpen then
DoorsOpen = false
HouseDoor.CanCollide = true
end
end
end
end

script.Parent.MouseButton1Down:connect(ClickButton)
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