What has more priority on the syntax?

Just a question might be dumb, and I think obviously variables get priority but to maybe help someone else :D;

local RunService = game:GetService("RunService")

local wait = function(n)
local dt = 0

	while dt < n do
		dt = dt + RunService.Heartbeat:Wait()
	end
	return false, dt

end

So if I ran wait() what will have more priority? wait function as an example by @sjr04 or the default wait?

Same with all functions?

That is completely overwriting the variable, so it will use the custom function

also I returned false as a joke so people wouldn’t do while wait(n) do end lol

2 Likes