#why dosent it work....

1 messages · Page 1 of 1 (latest)

stark jackal
#

the onserverevent just dosent work for some reason

#

its probably something stupid i wasnt aware of

wide girder
#

nothing's wrong

stark jackal
torpid crest
#

cus your doing script.parent

#

is it in replicated storage?

#

or somewhere else

stark jackal
torpid crest
#

so

#

wait

#

the remote event is in starterplayerscripts too?

torpid crest
#

move it to replicatedstorage

stark jackal
#

alr

torpid crest
#

local ReplicatedStorage = game:getservice(“ReplicatedStorage”)

local BlockEvent = ReplicatedStorage:WaitForChild(“BlockEvent”)

weak sinew
#

User Input Service can only be triggered by Local Scripts

torpid crest
weak sinew
torpid crest
#

can you check if the event fires? @stark jackal

#

use warn or a print statement

torpid crest
#

show me

#

rq

stark jackal
#

this the server script

torpid crest
# stark jackal

id recommend using variables but its fine, for now. but i meant check to see if the event fires to the server

torpid crest
stark jackal
torpid crest
stark jackal
#

it prints the player name

torpid crest
#

where is your server script?

stark jackal
#

starter player scripts

torpid crest
#

bruh

#

regular scripts need yo be in serverscriptservice

stark jackal
#

:'V

torpid crest
#

that will be why

stark jackal
#

ok lets try

torpid crest
#

local scripts are client

scripts are server

tardy roverBOT
#

studio** You are now Level 7! **studio

torpid crest
#

😭

stark jackal
#

skill issue 😭

torpid crest
#

i assume it worked?

peak sorrel
#

why does nobody in these forums use “for i, v in children do end”

#

pairs overrated

torpid crest
peak sorrel
#

😭😭🤣

#

that’s a good point

torpid crest
stark jackal
#

yay it worked!!!!!!!!!

#

thank you

torpid crest
#

🙏🙏🙏

#

np

#

also

#

id recommend

#

use variables

#

your code is easier to read and find issues with

stark jackal
#

yea i do that in long scripts

torpid crest
#

also learn the core basics of studio and lua

peak sorrel
#

I see now why a basic script is a 40 minute youtube video

stark jackal
torpid crest
# stark jackal yeah ik

id just get used to using variables it helps us decipher what is going on. ive seen hella people come i. here doing script.parent.parent every single damn line

#

makes it so hard to read

stark jackal
#

xd alr

torpid crest
#

glad i could help tho 😭

#

good luck with what ur making