#💬 red_axolotl8ʹs Feedback

1 messages · Page 1 of 1 (latest)

short hareBOT
wooden dagger
#

@desert sedge

#

Nice

#

How did you make a part fly out?

desert sedge
#

Cloning the part form replicated storage, giving it velocity and using debris service to get rid of the velocity

desert sedge
wooden dagger
#

Ok ty

#

@desert sedge Also whats the diferernce between velocity and magnitude?

#

Also you used remoteEvent, right?

desert sedge
wooden dagger
#

In your case, did you?

#

@desert sedge

#

I am making a game similar to urs lol

desert sedge
#

okay, so after using a lcoal script trashing wher the mouse position for the projectile part to go

#

in the SERVER script where the event inside the tool is called

#

make the part clone from repstorage

#

and parent it into workspace

#

after, weld the invisible hitbox with the part

#

make sure the part is massless true and can collide true

#

also

wooden dagger
#

it doesnt need a hitbox right?

desert sedge
#

in the server script

desert sedge
wooden dagger
#

i cna just use the part itself

desert sedge
#

hitbox is optional

wooden dagger
#

as the hitbox

desert sedge
#

yeah

wooden dagger
#

oh ok

desert sedge
#

anyway

wooden dagger
#

and then game:debris?

desert sedge
#

jn the server script

#

make an instand.new

#

body velocity

#

parent the body velocity to the part

#

and then call debris service

#

and delete the body velocity

#

like this kinda

wooden dagger
#

Alr

desert sedge
#

Debris:AddItem(BodyVelocity variable name, 10) -- HOW LONG THE BODY VELOCITY SHOULD LAST FOR

desert sedge
wooden dagger
#

ohh

#

got it

desert sedge
#

maek sure to also call the debris get service too

wooden dagger
#

so the part doesnt go infinitely

desert sedge
#

mmh

#

ye

wooden dagger
#

and also

#

debris the part itsself too
?

#

after a few seconds

desert sedge
#

ujst itentify the part within the script too

wooden dagger
#

ok

#

ty

#

ill make it

desert sedge
#

alr, good luck

wooden dagger
#

also

#

instead of using z like u did in gui

#

I can just do Tool.Activated right?

#

@desert sedge

desert sedge
#

yes

wooden dagger
#

k

desert sedge
#

wait

#

acualy no

#

you need a local script to get the mouse.pos

desert sedge
wooden dagger
#

oh

#

but i can still use Activated right?

#

it doesnt mattrer right

#

because i still get mousePos when activated

#

@desert sedge

desert sedge
#

use the tool.ADvitaed in the local script

#

then after the mouse pos is itentifyed

#

fire a temote event inside the tool

#

after, make a server script

#

in the tool

#

that detects a "Onserver event"

wooden dagger
#

ye

desert sedge
#

then also itentify the mouse pos too

#

yes

wooden dagger
#

wait

#

should i put parameter

#

in FireServer

#

like

#

FireServer(Mouse.pos)

desert sedge
#

call the Fire event

#

you can try

wooden dagger
#

ok

desert sedge
#

one sec let me look back at my script

#
            event:FireServer(mousePos)
end```
#

yes

#

correct

#

u can use it

wooden dagger
#

alr

#

and the OnServerEvent

desert sedge
#

local mouse = player:GetMouse()
local mousePos = mouse.Hit and mouse.Hit.Position or nil

wooden dagger
#

is it the first

#

or second paramter

desert sedge
#

GetMouse()

#

u can use it

#

either way

wooden dagger
#

in OnServerEvent

#

that gets the mouse

#

like this?
OnServerEvent(plr, mouse.Pos)

desert sedge
#

hmm

wooden dagger
#

um

desert sedge
#

eventZ.OnServerEvent:Connect(function(plr, target)

#

thjats what i used

wooden dagger
#

so target

#

is the mousepos right

desert sedge
#

yes

#

typeof(target) = "Vector3"

#

use this too

#

vector3 will help you

#

well

#

its needed

#

lmao

desert sedge
wooden dagger
#

ok

desert sedge
#

@wooden dagger i wish u the best of luck pal (:

wooden dagger
#

ty

wooden dagger
#

@desert sedge

#

My thing is not working

wooden dagger
#

nvm

#

gotit to work

desert sedge
#

Good

wooden dagger
#

how did you make the damage not stack

#

like when it hits someone

#

@desert sedge