how do i do that
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
local k = Instance.new("Part")
Mouse.Button1Down:Connect(function()
k.Parent = game.Workspace
k.Color = Color3.fromRGB(1,1,1)
k.Size = Vector3.new(0.08, 0.08, 0.08)
k.Anchored = true
k.Position = Mouse.Position
script.Parent.Shot.Value = true
wait(.001)
script.Parent.Shot.Value = false
end)
--//ClearUp\\--
while true do
if script.Parent.Shot.Value == true then
wait(math.random(1,5))
k:Destroy()
end
end
