TintinDevs
(TintinDevs)
#32
Not an image of the door… The door model/part in explorer (with the script)
TintinDevs
(TintinDevs)
#34
Also the script please…
Any errors when you run the game?
develofied
(develofied)
#35
No errors in the game right now. And ok
TintinDevs
(TintinDevs)
#37
Ahhhh… You said this was in the handle.
Not script.Parent.Parent:Destroy()
, but instead
For the first event:
hit.Parent:Destroy()
For the second event:
player.Backpack["White Key"]:Destroy()
3 Likes
NoraaApple
(Light_Void)
#38
You used hit.Parent.name
but it is hit.Parent.Name
roblox Lua(U) is very case sensitive so make sure to use Name not name
Forummer
(Forummer)
#39
.name
does work although .Name
as you suggested, should be used instead.
1 Like
develofied
(develofied)
#40
Now it removes the key, but the door does not disappear.
NoraaApple
(Light_Void)
#41
@develofied Read this message (the one i replied to) .name is depracated .Name isn’t
TintinDevs
(TintinDevs)
#42
Could you show the new script?
Forummer
(Forummer)
#43
Just so you’re aware tool instances cannot fire the .Touched
events of other BasePart instances, their handles (which are BaseParts) however can.
develofied
(develofied)
#44
this script is in the door.
TintinDevs
(TintinDevs)
#45
The script is within the handle I believe
NoraaApple
(Light_Void)
#46
Use .Name
not .name
it should work dude
Forummer
(Forummer)
#47
plr.Backpack
not player.Backpack
.
player
is underlined in blue indicating that it hasn’t been declared & initilialized.
2 Likes
develofied
(develofied)
#48
Forummer
(Forummer)
#49
Does your script contain a virus by the way? That last line (comment) looks familiar.
develofied
(develofied)
#50
Which line looks familiar to you?
Forummer
(Forummer)
#51
Last synced
and the remainder of that line. Click on that line and press the “End” key on your keyboard.