#help

1 messages · Page 1 of 1 (latest)

errant verge
#

Hi im trying to make a attack named SharkBite. But i just do not know how to couple my local script to my severscript. I want the attack to be visible to everyone, so not just local. this is what i have:

btw in the first script go to, if argument is = "one"

and in the second one = go to enum.KeyCode.One

empty terrace
#

uhhh you can make a function to trigger animation and then fireallclients?

that'd trigger the animation on all clients, But you might get desync issues

errant verge
#

like how do i call out the HumanoidRootPart

empty terrace
#

So you wanna trigger client side code on all clients? or turn client code into similar server code

#

Option 1 :

fireallclients()

onserverevent {
Do stuff
}

or

players:getplayers()

for player in players:getplayers()
part = Player.character.humanoidrootpart
do stuff

jade sparrowBOT
#

studio** You are now Level 2! **studio

empty terrace
#

super shit formatting lmfao

#

but

#

thats what i understand

errant verge
#

no i do wanna trigger all. Look in a local script you can use HumanoidRootPart and i just do not know how to script it in a serversscirpt

#

and i want it to be the guy who fired the server

#

so the player

errant verge
empty terrace
#

when a client triggers a server, the first parameter is Player

errant verge
#

i know i know

empty terrace
#

so u can reference that to see which is the player triggering it and then reference their part

errant verge
#

so like

#

player.character.Humanoid.HumanoidRootPart?

empty terrace
#

yea

#

sumn like that

#

wait

errant verge
#

ill wait

empty terrace
#

yeah add a wait for child character

#

or sumn

#

idk im super lost

#

on what you want

errant verge
#

yeah i know it is hard

#

look

#

so all my attacks are in a combat system

#

that is a local script

#

this one

#

starts the animation

#

and checks the User Input Service

#

so like when someone presses 1

#

the server gets fired

#

and send with a argument

#

like

#

one

#

but then

#

i want to make this attack work

#

so the particles need to be emmited

#

but to start this script

#

i need to clone the VFX part with the particles

#

and attach it to my humanoid

#

and i need to do this in my serverscript

#

so i'm not sure how to do that

errant verge
jade sparrowBOT
#

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

errant verge
#

@empty terrace

#

yo guys if you see this chat, i still need help