Hey there everyone,
Recently I’ve been trying to create bow and arrows, but after looking around on the forum it’s too confusing for me. I’ve got no idea how to show or calculate the trajectory, I’m trying to achieve something similar the bow in bedwars like this: Bedwars Bow Clip
Here is my current script, it has a handle with two attachments and a beam inside.
local bow = script.Parent
local handle = bow.Handle
local start_att = handle.StartAtt
local target_att = handle.TargetAtt
local beam = handle.Beam
local input_service = game:GetService("UserInputService")
input_service.InputBegan:Connect(function(key, p)
if p then return end
if key.UserInputType == Enum.UserInputType.MouseButton1 then
beam.Enabled = true
end
end)
input_service.InputEnded:Connect(function(key, p)
if p then return end
if key.UserInputType == Enum.UserInputType.MouseButton1 then
beam.Enabled = false
end
end)
Help would be greatly appreicated!
