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: I need help making a script

Previous Thread :: Next Thread 
cheesegerbil is not online. cheesegerbil
Joined: 29 May 2009
Total Posts: 115
19 Aug 2011 02:55 PM
i need help making e enouga script that only allows people through the door is they havh cash got any ideas.
Report Abuse
mage11561 is not online. mage11561
Joined: 03 Sep 2008
Total Posts: 13217
19 Aug 2011 02:56 PM
Ummm
Yeah
Define "cash"
Report Abuse
mage11561 is not online. mage11561
Joined: 03 Sep 2008
Total Posts: 13217
19 Aug 2011 02:56 PM
Ummm
Yeah
Define "cash"
Report Abuse
lelele2574 is not online. lelele2574
Joined: 23 Apr 2009
Total Posts: 349
19 Aug 2011 03:19 PM
like they need an amount of cash to go in?
Report Abuse
joshboy7797 is not online. joshboy7797
Joined: 06 Sep 2008
Total Posts: 1794
19 Aug 2011 03:43 PM
function t(h)
if h.Parent.WhatEverTheMoneySystemIsGoesHere >= NumberGoesHere then
script.Parent.CanCollide = false
script.Parent.Transparency = 1
wait(2)
script.Parent.CanCollide = true
script.Parent.Transparency = 0
end
end
script.Parent.Touched:connect(t)
Report Abuse
chikenugget is not online. chikenugget
Joined: 09 May 2009
Total Posts: 2552
19 Aug 2011 03:47 PM
@josh

Nope. Won't work.

~~ In Soviet Russia, scripts write you. ~~
Report Abuse
Wargod99 is not online. Wargod99
Joined: 11 Apr 2008
Total Posts: 548
19 Aug 2011 04:16 PM
local _Button = script.Parent
local ting = 0
function onTouched(hit)
local user = game.Players:GetPlayerFromCharacter(hit.Parent)
if (user ~= nil) then
local stats = user:findFirstChild("leaderstats")
if stats ~= nil then
local cash = stats:findFirstChild("Money")
if cash.Value >= 5000 then --5000 in money required
if ting == 0 then
ting = 1
_Button.CanCollide = false
_Button.Transparency = 0.5
wait(2)
_Button.CanCollide = true
_Button.Transparency = 0
ting = 0
end
else
hit.Parent.Humanoid.Health = 0 --Stops people without enough money walking through when a valid user opens it ontouch
end
end
end
end
_Button.Touched:connect(onTouched)
Report Abuse
cheesegerbil is not online. cheesegerbil
Joined: 29 May 2009
Total Posts: 115
22 Aug 2011 02:29 PM
yea i need that one you said its good but does it go into the door or into the cash or into what??
Report Abuse
DudyClause is not online. DudyClause
Joined: 27 Feb 2010
Total Posts: 431
22 Aug 2011 02:34 PM
well i think youd put the script for the door IN the door... i mean it sounds roodamentary to me.
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