Flag placer for an RTS I'm making.
Is in a local script in a tool.
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
local Tool = script.Parent
local Ready = true
local Flag = game.workspace.WhiteFlag
function click()
if Ready == true then
Flag.Position = Mouse.Hit.p + Vector3.new(0,3,0)
Ready = false
Flag.Transparency = 0
wait(0.25)
Flag.Transparency = 0.25
wait(0.25)
Flag.Transparency = 0.5
wait(0.25)
Flag.Transparency = 0.75
wait(0.25)
Flag.Transparency = 1
Ready = true
end
end
Tool.Activated:connect(click)
Can't see any specific output. Used to work entirely fine, stopped working today when I checked.

1 comment
Urgh, months with no answer