-
What do you want to achieve? Keep it simple and clear!
the issue is that whenever i use the function twice, it looks like the character (bf) (an fnf remake test) keeps glitching -
What is the issue? Include screenshots / videos if possible!
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
i find some but i didnt find any solution for it
local e12412241214 = false
function boyhit()
local bf = getplr(nil,true)
local stop = false
if bf and bf.Name == "boy" then
spawn(function()
local tex = bf.boy.Decal
while stop == false do
spawn(function()
wait()
if e12412241214 == true then
stop = true
print("e")
end
end)
e12412241214 = true
tex.Texture = "rbxassetid://12916240112"
wait(0.04)
tex.Texture = "rbxassetid://12916244302"
wait(0.04)
tex.Texture = "rbxassetid://12916246085" --Insert decal's first texture
wait(0.04)
tex.Texture = "rbxassetid://12916248236" --second texture
wait(0.04) --wait 1 second, you can change this and make it different for every one
tex.Texture = "rbxassetid://12916250726"
wait(0.04)
tex.Texture = "rbxassetid://12916252443"
wait(0.04)
tex.Texture = "rbxassetid://12916254291"
wait(0.04)
tex.Texture = "rbxassetid://12916256336" --second texture
wait(0.04)
tex.Texture = "rbxassetid://12916264855"
wait(0.04)
tex.Texture = "rbxassetid://12916267424"
wait(0.04)
tex.Texture = "rbxassetid://12916269148"
wait(0.04)
tex.Texture = "rbxassetid://12916272537"
wait(0.04)
tex.Texture = "rbxassetid://12916286489"
wait(0.04)
tex.Texture = "rbxassetid://12916288055"
wait(0.1)
e12412241214 = false
break
end
end)
end
end
heres the code for it, getplr is for the decal thingie