#Door Open/Close Only Team
108 messages · Page 1 of 1 (latest)
Well script.Parent.Parent.Parent is definitely not a player
Look at 3rd line of this script
Remove entire 3rd line and do onClicked(player)
No not like that
Here
replace onClicked()?
Replace onClicked() with onClicked(player)
Yes
Wait no
Remove exactly this code
Copy
?
Show your current code
put if back
** You are now Level 2! **
Woah i've never seen french code before
it looks so weird well the code is the same now that i look at it
Welcome
It's only comments
Test it
You're welcome
Well first, you tried to use GetPlayerFromCharacter which is not suitable here
Alright
ClickDetector.MouseClick event passes player who cliked to the connected function (you could know that if you read documenation). I told you to put player in the braces after function name because that way we can "take" that player argument and use it in out code
Yes
Also don't get confused: player here is just a name and we could call it the other way
Sure
While you were explaining me
idk what happened
but again it starting causing errors
and wont working
Variable names are Case-sensitive Player is not the same thing as player
Why did you remove Player from braces
It was making the same error
NVM
NVM
MY BIG BAD
I did the mistake
Good now
sorry
But i have a last question
short one
How to make impossible to players to zoom out a Transparent Part
Set material to forcefield
i'll do
it work
but
the effect is kind of ufly
ugly
to fix it i can add a glasse?
glass
Idk. Try set Transparency to 1 may be you still won't be able to move camera through 🤷♂️
No problem
** You are now Level 3! **
make a forcefield part with transparency 0 and make a glass part in the same place so its just a little bigger than the forcefield one and it will look ok
Yeah i made it thanks