#why does the click detector not work and sometimes it does work.

1 messages · Page 1 of 1 (latest)

noble heart
#
local click = Model.Click.ClickDetector

click.MouseClick:Connect(function(player)
    print("clicked")
    local item = Model.Item.Value:Clone()
    item.Parent = player.Backpack
end)
vapid lynx
#

chance you want to use :WaitForChild()

vapid lynx
#

is like it doesn't have a clickdetector

#

I don't know how that is possible if its created with a clickdetector inside it

noble heart
#

yeah

#

i might just use an proximity prompt instead

noble heart
#

NO WORK

vapid lynx
#

how are you giving these instances clickdetecotrs / proximity prompts

noble heart
#

what

#

i have an box with an click detector / proximity prompt inside

#

oh and if i click play here close to it, it seems like it works every time

vapid lynx
#

I really don't understand

noble heart
#

when i do play here it works

#

if im close

vapid lynx
#

Right I understand that but I guess I'll test in my own game

#

cuz this doesn't make sense

#

is like what u have?

#

where it has ClickDetector / ProximityPrompt exist prior to runtime

#

Or does it get added by a script for example

noble heart
vapid lynx
#

ah okay

#

You might want to change the Bandages model's streaming mode

noble heart
noble heart
vapid lynx
#

I would try and see if Atomic can fix it

noble heart
#

I have streaming disabled in workspace should i enable it

vapid lynx
#

Oh

#

Can still try Atomic on the model

#

I don't know if it makes a difference is StreamingEnabled is off

#

But I really don't know what the issue would be then

noble heart
#

where do i change the streaming mode of the model

#

i dont see anything in properties

vapid lynx
#

Would be in properties yea

noble heart
#

we have an problem

#

OH i have to enable streaming in workspace

vapid lynx
#

I am not sure what the issue is then

noble heart
#

now i have the property

vapid lynx
#

Normally issues like this happen due to streaming but you have it off so I don't know how it is breaking

#

Unless the part is unachored or sum

noble heart
#

maybe its an studio glitch?

vapid lynx
#

Cuz idk how it would be inconsistent

noble heart
#

i can try to rejoin

#

still dosent work

vapid lynx
#

🤷‍♂️

#

I've never seen this before

noble heart
#

Same just randomly came in my game

vapid lynx
#

And I couldn't recreate it but I had different setup of course

noble heart
#

aw

#

i also tried to use different free models from the toolbox to see if that same glitch still happend and it also glitched for me

vapid lynx
#

idk if could be related to a beta feature you have enabled

noble heart
#

OH LEMME CHECK

#

i have unified lighting on and idk if thats why the glitch happens

vapid lynx
#

if it was that would be crazy

#

cuz those are not even related

noble heart
#

yep nothing changed

#

still glitch

noble heart
#

yeah i might just give up on fixing this glitch

vague scroll
#

it overrides clicking action with tool use action