#Trying to learn studio, stuck on a part of making a dice. Help please

1 messages · Page 1 of 1 (latest)

cinder agate
#

Cannot figure out how to get a remoteevent to replace the NameAboveHeadTextLabel to the dices output

thorn notch
# cinder agate
diceevent.OnServerEvent:Connect(function(diceoutput)
  ClonedGui.NameAboveHeadTextLabel.Text = diceoutput
end)
swift nebula
# cinder agate

whenever you get a remote event on the server, the function will always be

RemoteEvent.OnServerEvent:Connect(function()

end)

#

also

#

that function on the dice script

#

i assume its not finished but you will need end)

cinder agate
#

Ive been at it a few days

swift nebula
#

ah okay

#

well

cinder agate
#

so im just trying to keep this simpler for learning purposes

swift nebula
#

well

#

what do you need help with rn

cinder agate
#

I just modified it to the ARandomSpork guys suggestion but it stills giving an error

near pivot
#

(function()

#

Is wrong gng

swift nebula
#

what are you yapping about

#

he just needs to put end)

#

thats all

near pivot
#

Oh mb gng

cinder agate
swift nebula
near pivot
#

(“diceoutput”)

swift nebula
#

thats the thing

near pivot
swift nebula
#

you are indeed tripping

cinder agate
#

oh my bad

#

i didnt put in the quotations

#

wait

#

its a variable

#

so it doesnt need them?

swift nebula
#

oh wait you got the dice output in the function

near pivot
#

🤦‍♂️

swift nebula
#

i cant read apparently

cinder agate
#

i cant either

#

im just trying to wrap my head around programming, i started studying this like 2 days ago

swift nebula
#

also it doesnt need to be in brackets or quotations

cinder agate
#

im understanding more every day im just having the biggest issue in having a remote event activate code

near pivot
swift nebula
#

since its a variable

cinder agate
#

also that my code is confusing lol

near pivot
#

😑

swift nebula
#

my brain is fried

cinder agate
#

same

#

5 hours of sleep

swift nebula
#

im cooked

cinder agate
#

damnnn

#

i just got home

#

but yeah

swift nebula
#

can you hover over diceoutput

#

show me what it says

cinder agate
#

what im trying to do is have the random number 1-20 that the dice rolls appear in place of the overhead GUI

#

alright

near pivot
#

Do u have the gui?

cinder agate
#

yeah

#

well now its not showing

#

i broke something

near pivot
#

….

swift nebula
#

wait

cinder agate
sharp salmonBOT
#

studio** You are now Level 4! **studio

cinder agate
#

got it working

swift nebula
#

what was the issue

#

inside the function?

cinder agate
#

i had an end) in the middle of all the code

near pivot
#

….

cinder agate
#

i just need to get the uh

#

the diceoutput to replace the gui

#

the overhead one

#

that says PoofingKevlar

swift nebula
#

fair enough

#

enjoy bro