So i have a local script witch summons a part(transparent) with some particle effects that makes it look like fire and another script in that part witch does the damage. The script creates a clone from replicatedStorage when mouse is clicked. It does appear how it's supposed to, but only in solo test. In any other sort of testing(local server,team test,game test) it's only visible by the player that casts it. Not even by the server itself, and the damage does not work. Is this a glitch or is there something wrong in my code?? Thanks in advance!
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse() local flame = game.Workspace.Amaterasu local db = false
local timeout = 20
Mouse.Button1Down:connect(function()
db = true
while timeout > 0 do
local flameCOPY = flame:Clone()
flameCOPY.Parent = game.Workspace
flameCOPY.CFrame = Mouse.Hit
flameCOPY.Name = "Amaterasu2"
flameCOPY.Position = game.Workspace["Boogy man"].Position
timeout = timeout - 1
wait(0.1)
end
timeout = 20
end)
need to use a remote event to make it work on the server.