Event is not firing? (May be because of repeat)

Greetings,

There is no error. The event is not firing. firstcutscene is a BindableEvent.

	repeat
		text.TextTransparency += 0.01
		task.wait(0.01)
	until text.TextTransparency == 1
	task.wait(2)
	script.Parent.Parent.Visible = false
	firstcutscene:Fire(TruePlayer1,Player1Id,TruePlayer2,Player2Id,"Starting First Cutscene!")
1 Like

hey can you tell ne why you’re using bindableEvents instead of remoteEvents? just wondering. I would recommend remoteEvents but I’ll look into it

Because it is between 2 local scripts?

2 Likes

can I see the script for the other script that recieves it?

try putting that line in a different script and run it to make sure its not the repeat loop

When the event is fired, it should’ve printed out "Starting First Cutscene!" as it is written there in the event brackets. But it doesn’t, so the script does not reach the event. Since there is no error, there is totally a loop, so yea the repeat might be a problem. I really need the loop though.

hmmm this is strange I’m not expierienced in these kinda stuff so idk how much I can help

does it make the visible of the textLabel false?

ok I have an idea how about you make a remote event that goes to server and then back to client to see if the bindableEvent itself is the issue

What can’t you understand? The script doesn’t even reach the event. Using what you’re saying will just make everything more complicated and I will receive the same result. The script is most likely stuck in a loop because of that repeat until function. I am looking for something to replace that or to make it stop.

1 Like

hey sorry I didn’t understand. Try

while text.TextTransparency ~= 1 do
text.TextTransparency += 0.01
task.wait(0.01)
end
1 Like

its 11:40 pm for me my brains just not working :frowning:

It works I guess for this situation. Thanks!

1 Like

your welcome sorry for being stupid earlier my brain is dying yk

1 Like