#Door Open/Close Only Team

108 messages · Page 1 of 1 (latest)

small marshBOT
#

studio** You are now Level 1! **studio

nova magnet
meager belfry
#

Well script.Parent.Parent.Parent is definitely not a player

#

Look at 3rd line of this script

nova magnet
#

Ohhh

#

Yes

meager belfry
#

Remove entire 3rd line and do onClicked(player)

nova magnet
meager belfry
#

No not like that

nova magnet
#

How?

#

Im sorry im new in dev

meager belfry
nova magnet
#

replace onClicked()?

meager belfry
#

Replace onClicked() with onClicked(player)

nova magnet
meager belfry
#

Yes

nova magnet
#

Alright

#

i'll test it

meager belfry
#

Wait no

nova magnet
#

Alright

#

What next?

meager belfry
#

Remove exactly this code

nova magnet
#

Copy

meager belfry
#

?

nova magnet
#

Copy that

#

alright

#

i removed it

meager belfry
#

Show your current code

nova magnet
meager belfry
#

put if back

nova magnet
small marshBOT
#

studio** You are now Level 2! **studio

bronze sail
#

Woah i've never seen french code before

#

it looks so weird well the code is the same now that i look at it

nova magnet
#

Welcome

meager belfry
bronze sail
#

yeah

#

haha

meager belfry
nova magnet
#

Alright

#

Omg thanks so much

meager belfry
#

You're welcome

nova magnet
#

But how?

#

what was the problem?

#

The whole 2nd and Tird part

meager belfry
#

Well first, you tried to use GetPlayerFromCharacter which is not suitable here

nova magnet
#

Alright

meager belfry
#

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

nova magnet
#

Yes

meager belfry
#

Also don't get confused: player here is just a name and we could call it the other way

nova magnet
#

Sure

#

While you were explaining me

#

idk what happened

#

but again it starting causing errors

#

and wont working

meager belfry
#

Which errors

#

Show

nova magnet
#

dont mind

#

the (Player)

#

onClicked(Player)

meager belfry
#

Variable names are Case-sensitive Player is not the same thing as player

nova magnet
meager belfry
#

Why did you remove Player from braces

nova magnet
#

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

meager belfry
#

?

#

Wym

#

Set material to forcefield

nova magnet
#

i'll show you

#

I think so

#

You see

meager belfry
#

Set material to forcefield

nova magnet
#

People can zoom out window

#

This?

meager belfry
#

Yes

#

Try it

nova magnet
#

i'll do

#

it work

#

but

#

the effect is kind of ufly

#

ugly

#

to fix it i can add a glasse?

#

glass

meager belfry
#

Idk. Try set Transparency to 1 may be you still won't be able to move camera through 🤷‍♂️

nova magnet
#

No problem

small marshBOT
#

studio** You are now Level 3! **studio

nova magnet
#

it will make the job

#

Thank so much for the help

#

if you need anything call me

meager belfry
# nova magnet

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

nova magnet
#

Yeah i made it thanks