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: Tycoon door help!

Previous Thread :: Next Thread 
FlawlessRetriever is not online. FlawlessRetriever
Joined: 20 Feb 2012
Total Posts: 77
13 Nov 2014 10:05 PM
Ok So I have a door script that you can click to open and close. What can I do to make the script make sure only the owner of the tycoon can click the door? Here is the setup of the tycoon in the explorer.

Tycoon
Tycoon
(string value)OwnerName
(string value)Price
(model)Buy tycoon
(model)Tycoon owner:Nobody
(part)Door
Click Detector
Script

Again, this is what I'm askng: How can I make the Door only open if the Owner Clicks it?


Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
13 Nov 2014 10:07 PM
Check if the OwnerName.Value is the same as the person who touched it
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
13 Nov 2014 10:08 PM
who clicked it*
Report Abuse
FlawlessRetriever is not online. FlawlessRetriever
Joined: 20 Feb 2012
Total Posts: 77
15 Nov 2014 10:20 AM
Ok, how do I do that? I'm not really an expert at scripting.
Report Abuse
FlawlessRetriever is not online. FlawlessRetriever
Joined: 20 Feb 2012
Total Posts: 77
15 Nov 2014 10:28 AM
here's my script so you can see how the scripting needs to be integrated.

local isOn = true


function on()
isOn = true
script.Parent.Transparency = 0
script.Parent.CanCollide = true
end

function off()
isOn = false
script.Parent.Transparency = .5
script.Parent.CanCollide = false
end

function onClicked(hit)

if isOn == true then off() else on() end

end

script.Parent.ClickDetector.MouseClick:connect(onClicked)

on()
Report Abuse
FlawlessRetriever is not online. FlawlessRetriever
Joined: 20 Feb 2012
Total Posts: 77
15 Nov 2014 11:48 AM
bump
Report Abuse
Meowcatmaster is not online. Meowcatmaster
Joined: 20 Oct 2012
Total Posts: 769
15 Nov 2014 11:49 AM
Using crazyman's script. You'll have to edit it a lot.
Report Abuse
FlawlessRetriever is not online. FlawlessRetriever
Joined: 20 Feb 2012
Total Posts: 77
15 Nov 2014 07:33 PM
Would it be easier to get an experienced scripter to script it for me?
Report Abuse
FlawlessRetriever is not online. FlawlessRetriever
Joined: 20 Feb 2012
Total Posts: 77
15 Nov 2014 09:21 PM
Bump. So, basically, I need help integrating the owner check into my script. Please help!
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