#fireclient() help

1 messages · Page 1 of 1 (latest)

cunning crown
#

im trying to send arguements through to make a cutscene. i did FireClient(plr,cutscenepart,cutscenelength)

untold rock
cunning crown
#

the local ]

#

local script is in replicated first

#

the script firing the event is in a tool

steady void
#

cutscenepart.parent is not shown the indentation threw me off

steady void
cunning crown
#

the parent of the cutscenepart is workspace

#

i try sending the cframe but it sends weird info

#

let me screenshot a example

cunning crown
#

eg i send the nummber

austere houndBOT
#

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

cunning crown
#

to client thing

#

so the client does task.wait(num)

#

but it doesnt get num and stuff

steady void
#

looks fine to me

cunning crown
#

then whats going on

steady void
#

though why is your indentation just horribly wrong

cunning crown
steady void
#
why
            are
    you
                      writing
  code
              like
       this```?
steady void
steady void
cunning crown
#

im sending the essential information

#

the rest in that script is unneccesary

steady void
steady void
cunning crown
#

well this script is fired from a remoteevent

#

so its

steady void
#

i'm guessing user is wrong, or maybe you're messing with the character or something

#

could be anything

cunning crown
#

detects keybind pressed script then does its things then sends a fireclient and does a cutscene

steady void
#

but if you think the issue is in the snippets you put, and is only there, well, sorry to say but i don't see it. maybe someone else will. good luck salute

cunning crown
#

its firing client but it doesnt do anything

steady void
cunning crown
#

thats printed from the server

steady void
#

in fact it wouldn't be printing anything at all if it wasn't working.

steady void
# cunning crown

i dont see any prints in your server code. sorry bruh i dont play mind-reading games.

#

if its not calling at all then it's probably just the wrong event

cunning crown
#

uh its says -Server at the end of the output

#

ok

steady void
cunning crown
#

oh ok

#

thanks

#

whats a good position to put my events

#

replicatedstorage?

steady void
#

replicatedstorage

#

im not sure why the docs dont specify this, very easy to overlook that problem. last time i checked events in repfirst they wont be received

steady void
#

it happens 🤷

cunning crown
#

now the main problem is

#

my arguements arent going through

#

it gets nil

#

``lua

#

Cutscene.OnClientEvent:Connect(function(part,num)

steady void
#

the part will be nil but the number wont be

cunning crown
#

oh ok

#

ill use cframe then

#

tysm