#start beam not working
1 messages · Page 1 of 1 (latest)
why not work
is that not it working
Wut I get
It need to be reseted
meant to come from here
Completely
what u mean
you set the position of your model to the default position
instead of 0,0,0
so i change
that should be the issue
you handle your position wrong
as in you default it to the position its assigned in studio
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
check if the end is anchored
and if theres anything holding that shit together like a weld
oh
oh yea
that cube is
where i want the beam to be
like in studio its how iw ant it
when i try doenst works
ughhhhhhh
worldposition is relative to the world
just position is relative to the parent
in this case ur tip
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
send video
holy chopped
accident?
Bro
Im in 711 with squid game fit
Ugh
icl im baffled
im asking grok
send the script
Just put the beams starting pos to the hitPart and to the attachment i dont know how beams work
bro ur original script
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)```
the handle
what was it