#how to i fix this bug

65 messages · Page 1 of 1 (latest)

peak horizon
subtle igloo
#

instead of mousebutton1click try Activated

peak horizon
#

if i press a button on my surfacegui pops out a error with the script

peak horizon
outer patrol
#

ye u dont know the client server

peak horizon
outer patrol
#

localplayer doesnt exists on serveeeeeeeeeer

peak horizon
#

oh

#

so i make it a local script

subtle igloo
#

use localscript instead

outer patrol
#

yes u should, but u should use adornee property on the billboardgui

#

search bout that

peak horizon
#

alr?

peak horizon
subtle igloo
#

u should try like event

limber flicker
#

that's what he means

#

cuz guis are local

#

not server

peak horizon
#

i fixed it myself i dident use a event put ty

outer patrol
peak horizon
#

yup

outer patrol
#

yep!, that would just bug the item that u cloned because u r doing it locally

peak horizon
#

was about to say that

outer patrol
#

you would just as we said previously handle with localscript & send a remote event to the server

peak horizon
#

how .-.

outer patrol
#

well i'm not gonna explain a full client/server context & remote events, so i suggest to you to research first about client/server contexts & then remote events

peak horizon
#

i am new to luau

limber flicker
peak horizon
#

time to watch a tut

peak horizon
#

made some basic code and took long brakes

limber flicker
#

why did u told us u scripted for 1Y then...

lone thicket
#

Why don’t we use a normal script and have the function pass the player to put the item in the backpack of

lone thicket
outer patrol
#

just use the adornee property of billboard, then you use a localscript for the buttons & then fire

lone thicket
#

Fair

outer patrol
#

its literally facts about scripting

limber flicker
#

cuz gui is local

peak horizon
#

i am watching tuts

limber flicker
#

bro

#

tuts are not always efficient

#

cuz alot of them just give u the code without explaination

#

like they sometime tell u why u use this, but not totally

#

so u dont relly understand

peak horizon
#

yup

#

what to i to

#

so what i get a remote event to the server and then like magic

#

@here

lone thicket
#

Yea

peak horizon
#

yes

worthy nightBOT
#

studio** You are now Level 6! **studio

peak horizon
#

i dont understand

#

anyone left here to help me? @here