#billboard gui textbutton problem
1 messages · Page 1 of 1 (latest)
So it does not even print "clicked"?
no
wait
i put the interactwith there and at the end of the guifunction
ill show u my billbaords properties
and textbutton properties
ifyw
in what kind of script is this located in?
The method StartDialog() gets called inside a server script and inside that method you use the .MouseButton1Click event which can only be detected by the client.
i thought about doing it in a local script but the thing is i need to get the ui in the localscript when the ui is cloned
or do i just copy over the cloneui all of that silly billy into my localscript
and give it a try
or do should i just put it in the textbutton
yeah if your cloneui is in replicated storage you can clone it from there
so ive pasted the code into my interactbtn instance with a localscript it still dont work
ill just show u properties
which script
i just made a localscript in interactbtn
it sets the adornee to rig torso automatically btw if you think of saying something about that
** You are now Level 8! **
local interactwith = script.Parent
interactwith.MouseButton1Click:Connect(function()
print("clicked")
end)
and that didn't print ?????
any errors?
wait where is the local script located?
im guessing this is inside the workspace right?
which is inside the workspace.
You can't run local scripts inside the workspace unless they are parented to instances that the client owns.
You'd have to place your script inside one of these three folders.
Then reference your rig and reference the button inside that rig
this is what i said earlier
but i thought that there must be another way
because i thought what u just said wouldnt work
?
ill try
👍
memo?
basically was trying to say i hoped you got what i meant
i see
can i see your local script?
local ffr = workspace:WaitForChild("ff").BillboardGui.TextButton
ffr.MouseButton1Click:Connect(function()
print("Hi")
end)
What. Isn't your TextButton called interactbtn
ok so i put billboard in startergui and it worked
no i made a whole nother new part, billboard gui and textbtn
don't you clone them?
Because in your script you don't use Instance.new()
or did you create a new one just for testing purposes?
yes
I see.
Well do you know how to fix this issue now?
well i have to try and think logically on how im gonna make this work for my npcdialog
uhh
nvm
idk how thats happened
its gotten darker
Yeah BillboardGui also takes light in account.
yea
also
its worked now
but
the thing is
wait a sec
i have an idea
hold on
👍
nvm it works now
done it for both
got smart quickly
i was gonna say how im gonna like clone it and parent it to startergui all of that bollocks
but i done it anyway
and i made the click function work for both of them
thank you for your help, dearly
i appreciate it
No problem and good luck with creating your game 👍
thank you
