#billboard gui textbutton problem

1 messages · Page 1 of 1 (latest)

waxen relic
#

so im trying to make a dialogue system, and i want to test out if i can click the textbutton so i can do everything else, but its just not working. can anyole help?

#

i included what was in the normal script just incase

snow siren
waxen relic
#

no

snow siren
#

wait

waxen relic
#

i put the interactwith there and at the end of the guifunction

#

ill show u my billbaords properties

#

and textbutton properties

#

ifyw

snow siren
#

in what kind of script is this located in?

waxen relic
#

serverscriptservice it was in my rig before

#

intentionally

snow siren
#

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.

waxen relic
#

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

snow siren
#

yeah if your cloneui is in replicated storage you can clone it from there

waxen relic
#

so ive pasted the code into my interactbtn instance with a localscript it still dont work

#

ill just show u properties

waxen relic
#

i just made a localscript in interactbtn

#

it sets the adornee to rig torso automatically btw if you think of saying something about that

grand pineBOT
#

studio** You are now Level 8! **studio

snow siren
#

what did you paste into the local script?

#

the module or the server script?

waxen relic
#

local interactwith = script.Parent

interactwith.MouseButton1Click:Connect(function()
    print("clicked")
end)
waxen relic
#

no bro

#

idk how

snow siren
#

any errors?

waxen relic
#

nope

#

ill even check

#

again

#

yeah no errors atall

snow siren
#

wait where is the local script located?

waxen relic
snow siren
waxen relic
#

it clones the ui to the rigs torso

snow siren
#

which is inside the workspace.

waxen relic
#

yes

#

the rig is in the torso

snow siren
#

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

waxen relic
#

this is what i said earlier

#

but i thought that there must be another way

#

because i thought what u just said wouldnt work

snow siren
waxen relic
#

ill try

snow siren
#

👍

waxen relic
#

i was hoping youd get the memo

snow siren
waxen relic
#

basically was trying to say i hoped you got what i meant

snow siren
#

i see

waxen relic
#

ill try startercharacterscripts

#

still not wokring

#

working

snow siren
#

can i see your local script?

waxen relic
#

local ffr = workspace:WaitForChild("ff").BillboardGui.TextButton

ffr.MouseButton1Click:Connect(function()
print("Hi")
end)

snow siren
waxen relic
#

ok so i put billboard in startergui and it worked

waxen relic
snow siren
#

Because in your script you don't use Instance.new()

#

or did you create a new one just for testing purposes?

snow siren
snow siren
waxen relic
#

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

snow siren
waxen relic
#

yea

#

also

#

its worked now

#

but

#

the thing is

#

wait a sec

#

i have an idea

#

hold on

snow siren
#

👍

waxen relic
#

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

snow siren
#

No problem and good luck with creating your game 👍

waxen relic
#

thank you