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 » Scripters
Home Search
 

Re: Door Script Resetting/Not Working

Previous Thread :: Next Thread 
lalamarina05480 is not online. lalamarina05480
Joined: 11 Feb 2012
Total Posts: 409
20 Aug 2016 08:52 PM

Mk, so I put in a door script:


script.Parent.Touched:connect(function(hit)
if (hit and hit.Parent and game.Players:FindFirstChild(hit.Parent.Name)) then
if (game.Players[hit.Parent.Name]:IsInGroup(1149634) and game.Players[hit.Parent.Name]:GetRankInGroup(1149634) >= 10) then
script.Parent.CanCollide = false
script.Parent.Transparency = .9
wait(1)
script.Parent.CanCollide = true
script.Parent.Transparency = 0
else
script.Parent.CanCollide = true
end
end
end)

But I want it to be an invisible door. When I try to change the first Transparency to 0, it always resets back to .9. I tried to save the game with it on 0, but it never works. When I first enter the game, it appears invisible, until it is used it is visible again. Help me out!

Thanksss.
Report Abuse
lalamarina05480 is not online. lalamarina05480
Joined: 11 Feb 2012
Total Posts: 409
20 Aug 2016 09:12 PM
bump // please helpp!!!!!
Report Abuse
AggressiveCatch is not online. AggressiveCatch
Joined: 17 Jul 2011
Total Posts: 5840
20 Aug 2016 09:14 PM
i think that you need to add a debounce

google it or search the wiki for it to learn more about what it is
Report Abuse
iJacobness is not online. iJacobness
Joined: 20 Jan 2014
Total Posts: 4944
20 Aug 2016 09:14 PM
stop noob free model


Report Abuse
peIicans is not online. peIicans
Joined: 02 Nov 2013
Total Posts: 1148
20 Aug 2016 09:26 PM
this should work



local db = false

script.Parent.Touched:connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player and db == false and player:IsInGroup(1149634) and player:GetRankInGroup(1149634) >= 10 then
db = true
script.Parent.CanCollide = false
script.Parent.Transparency = .9
wait(1)
script.Parent.CanCollide = true
script.Parent.Transparency = 0
db = false
end
end)



Report Abuse
lalamarina05480 is not online. lalamarina05480
Joined: 11 Feb 2012
Total Posts: 409
20 Aug 2016 10:05 PM
nope, it didnt work :/
Report Abuse
HalfPinky456 is online. HalfPinky456
Joined: 10 Apr 2011
Total Posts: 6236
20 Aug 2016 10:13 PM
local db = false

script.Parent.Touched:connect(function(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player and db == false and player:IsInGroup(1149634) and player:GetRankInGroup(1149634) >= 10 then
db = true
script.Parent.CanCollide = false
script.Parent.Transparency = 0
wait(1)
script.Parent.CanCollide = true
script.Parent.Transparency = 0
db = false
end
end)



nothin' like a good argument ¯\_(ツ)_/¯
Report Abuse
lalamarina05480 is not online. lalamarina05480
Joined: 11 Feb 2012
Total Posts: 409
20 Aug 2016 10:55 PM
didn't work [2]


:////
Report Abuse
lalamarina05480 is not online. lalamarina05480
Joined: 11 Feb 2012
Total Posts: 409
21 Aug 2016 09:10 AM
is there anything else that might work? e.e
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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