local Mouse = game.Players.LocalPlayer:GetMouse()
local charcter = game.Players.LocalPlayer.CharacterAdded:Wait()
local Debounce = false
local function Creation()
local Part = Instance.new("Part")
Part.Shape = Enum.PartType.Ball
Part.Transparency = 0
Part.Size = Vector3.new(0.822, 0.822, 0.822)
Part.Color = Color3.fromRGB(46, 61, 80)
Part.Anchored = true
Part.CanCollide = false
Part.CanTouch = true
Part.CanQuery = false
Part.Parent = workspace.FlingBeam
Part.Material = Enum.Material.SmoothPlastic
local Attachment0 = Instance.new("Attachment", Part)
local Attachment1 = Instance.new("Attachment", charcter)
local beam = Instance.new("Beam", Part)
beam.FaceCamera = true
beam.Attachment0 = Attachment0
beam.Attachment1 = Attachment1
beam.LightEmission = 1
beam.LightInfluence = 0
beam.TextureMode = Enum.TextureMode.Static
beam.TextureLength = 1.75
beam.TextureSpeed = 0.7
beam.Texture = "rbxassetid://120227639872208"
beam.Parent = Part
Mouse.Button1Down:Connect(function()
Part.Position = Mouse.Hit.Position
end)
end
Creation()
==========================================================================================================
So please watch the video idk what to do Yall! So basically: When I click I want the Beam and Ball be appear, Then when I click again I want the Ball and beam to dissapear and Repeat ya know. Idk what I did wrong but when I click it dosnt disappear just keeps moving when I click can someone pelase help me!!


