#start beam not working

1 messages · Page 1 of 1 (latest)

manic heath
left solstice
#

why not work

manic heath
#

I DONT KNOW

#

lok

left solstice
#

is that not it working

manic heath
#

yes

#

look

#

ok

#

go on

#

its not meant to spawn here

blissful shadow
#

Wut I get

manic heath
#

it keeps doing that

blissful shadow
#

It need to be reseted

manic heath
#

meant to come from here

blissful shadow
#

Completely

manic heath
#

what u mean

blissful shadow
#

Ur script

#

Wrong

#

Gng

manic heath
blissful shadow
#

What u need

#

Help w

manic heath
#

make the tip attachment

#

go to the tip

cold mist
#

you set the position of your model to the default position

manic heath
#

instead of 0,0,0

cold mist
#

relative to the baseplate

#

and not relative to the character

manic heath
#

here?

cold mist
#

yeah

#

think so

manic heath
#

so i change

cold mist
#

that should be the issue

manic heath
#

oh

#

kk

cold mist
#

you handle your position wrong

#

as in you default it to the position its assigned in studio

manic heath
#

I see the issue now! You need to move the tip part to workspace FIRST, then set the attachment position. The attachment position is being set while the part is still parented to the tool/character

#

no

#

still doesnt works

#

i ccant do this

#

idk

#

so hard

cold mist
#

check if the end is anchored

#

and if theres anything holding that shit together like a weld

manic heath
#

what?

#

its an attachment

cold mist
#

oh

manic heath
#

like this

cold mist
#

oh yea

manic heath
#

that cube is

#

where i want the beam to be

#

like in studio its how iw ant it

#

when i try doenst works

#

ughhhhhhh

cold mist
#

worldposition is relative to the world

#

just position is relative to the parent

#

in this case ur tip

manic heath
#

so i do that?

cold mist
#

it should update along with the parent's movement

#

Hopefully yea

manic heath
#

no i dont awnt it to

#

its meant to be quick fire

#

ok

#

let me try

#

wait

#

now its starting at where it is in studio..

#

wait not even

#

./..

#

idek where it went

left solstice
#

send video

manic heath
#

@dense slate

#

@left solstice

left solstice
#

holy chopped

manic heath
#

OMG

#

CHILL

dense slate
#

*for

manic heath
#

accident?

manic heath
#

but can u help

#

u see

#

wait

dense slate
manic heath
#

youre gifted

dense slate
#

Im in 711 with squid game fit

manic heath
dense slate
#

Fuck do you want me to do im at 711

manic heath
#

Ugh

left solstice
#

icl im baffled

manic heath
#

im asking grok

left solstice
#

send the script

dense slate
# manic heath

Just put the beams starting pos to the hitPart and to the attachment i dont know how beams work

manic heath
#

ok tehre

left solstice
#

bro ur original script

manic heath
#
local tool = script.Parent
local player = game.Players.LocalPlayer
local mouse = nil

tool.Equipped:Connect(function()
    mouse = player:GetMouse()
end)

tool.Activated:Connect(function()
    if not mouse then return end

    local tipPart = tool:WaitForChild("Tip")
    local beam = tipPart:FindFirstChild("Beam75")
    local startAttachment = tipPart:FindFirstChild("Start")
    local endAttachment = tipPart:FindFirstChild("End")

    if not (beam and startAttachment and endAttachment) then
        warn("Missing beam or attachments")
        return
    end

    startAttachment.WorldPosition = tipPart.Position

    local origin = startAttachment.WorldPosition
    local targetPos = mouse.Hit.Position
    local direction = (targetPos - origin).Unit * 500

    local raycastParams = RaycastParams.new()
    raycastParams.FilterDescendantsInstances = {player.Character}
    raycastParams.FilterType = Enum.RaycastFilterType.Exclude

    local raycastResult = workspace:Raycast(origin, direction, raycastParams)
    local hitPos = raycastResult and raycastResult.Position or (origin + direction)

    local originalParent = tipPart.Parent
    tipPart.Parent = workspace

    endAttachment.WorldPosition = hitPos

    beam.Enabled = true

    task.wait(0.5)

    beam.Enabled = false
    endAttachment.WorldPosition = startAttachment.WorldPosition

    tipPart.Parent = originalParent
end)```
left solstice
manic heath
#

HOW

#

@left solstice

#

@left solstice

left solstice
#

its literally ur script

#

youve royally fucked something up

manic heath
#

maybe the fact

#

the attachment is in the tip

#

can u show me ur

#

hierarchy

left solstice
manic heath
#

what

#

why u got a weld

#

whats it welded to

left solstice
#

the handle

manic heath
#

uhm

#

THANK U

#

IT WORKED.

left solstice
#

what was it

manic heath
#

i needed to weld

#

..

#

for some reason lol

#

cant fucking believe it wasnt even the code