So I’m working on a TweenService module, but the bindable event won’t fire at all. There are no errors, and I’ve set the parent to workspace to make sure it’s a bindable event.
local ReplicatedTweening = {}
local RunService = game:GetService("RunService")
function ReplicatedTweening:Create()
local replicatedTween = {}
local events = {
Completed = Instance.new("BindableEvent")
}
for event, info in pairs(events) do
replicatedTween[event] = info.Event -- to reference in other scripts
end
function replicatedTween:Play() -- this function runs
events.Completed:Fire()
print("Fired event!")
events.Completed.Event:Connect(function() -- I did this to see if this would even fire, it won't.
print("Completed event was fired.")
end)
end
return replicatedTween
end
return ReplicatedTweening