Hello Developers, I added a blinking feature into my game, but the issue is, the blinking script does not work on the player when they’re character is loaded in, and it only works on a dummy in the game. How would I make it so that it works on the players and on the dummy’s?
I’d need to see the code and what a ‘blinking feature’ is.
Oh yeah, my bad.
local Blink1 = "rbxassetid://20676546"
local Blink2 = "rbxassetid://12952506499"
local Blink3 = "rbxassetid://12952511100"
local Blink4 = "rbxassetid://12952514185"
local debounce = false
function switchDecalId(Id)
script.Parent.Texture = Id
end
while task.wait(3) do
if not debounce then debounce = true
switchDecalId(Blink2)
task.wait(.05)
switchDecalId(Blink3)
task.wait(.05)
switchDecalId(Blink4)
task.wait(.05)
switchDecalId(Blink3)
task.wait(.05)
switchDecalId(Blink2)
task.wait(.05)
switchDecalId(Blink1)
end
debounce = false
end
Could you provide an explanation into this ‘blinking feature’, what is your end goal and what steps have you tried etc?
Its not really a feature.
But anyway, its a script that’s supposed to emulate what blinking looks like by changing decal id’s to show the process of blinking, and then reverting back to its original form.
The end goal seems a bit self explanatory, to emulate blinking.
I haven’t really tried many steps, but I did try changing the script from the server to local. Still didn’t work…
I feel like you’re not providing enough information here, what doesn’t work on it? Is there Errors/Warnings?
Wait nevermind, I figured out the issue.