local player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local HumanoidRootPart = character:WaitForChild("HumanoidRootPart") local Bean = script:WaitForChild("Beam"):Clone() local function CreateBean(Bean, Attachment0, Part) local Attachment1 = Part:FindFirstChild("Attachment") if Attachment1 then Bean.Attachment0 = Attachment0 Bean.Attachment1 = Attachment1 end end game.ReplicatedStorage.ArrrowEvent.OnClientEvent:Connect(function(Part, Value) if Value == true then local Attachment0 = HumanoidRootPart:FindFirstChild("RootRigAttachment") CreateBean(Bean, Attachment0, Part) Bean.Parent = character else Bean:Remove() end end)