Hello, I am trying to fire a remote from a module script to a serverscript, to then fire another one to pick it up in a local script. But the trouble is either that it won’t fire or the server won’t pick it up. This is for a moveset just in case that is relevant. Also the “guiTween” function gets called inside of a function from a pickup of UIS fired from the localscript.
Here are the scripts:
local cooldownsRemote = script.Parent:WaitForChild("Cooldown"):WaitForChild("CooldownsRemote")
function guiTween(gui, length)
cooldownsRemote:FireServer()
local red = gui.Cooldown
red.Size = UDim2.new(1,0,1,0)
red.Transparency = 0.6
local tween = ts:Create(red, TweenInfo.new(length, Enum.EasingStyle.Linear), {Size = UDim2.new(1,0,0,0)})
tween:Play()
tween.Completed:Wait()
red.Transparency = 1
local white = gui
white.BackgroundColor3 = finishColour
local tween = ts:Create(white, TweenInfo.new(0.5, Enum.EasingStyle.Linear), {BackgroundColor3 = OGColour})
tween:Play()
end
function elemental.One(gui, length)
print("One")
wait(1)
guiTween(gui, length)
end
The part after the cooldowns remote is not relevant it is just tweening of a gui.
This is the setup of the module:
The gui still gets tweened but it doesnt print “got” from this script, and acts as if it just skipped that line:
script:WaitForChild("CooldownsRemote").OnServerEvent:Connect(function(player)
print("got")
player.Character.Moves.Cooldowns:FireClient()
end)
And this is the final part on the local script:
local cooldownsRemote = script.Parent.Cooldowns
cooldownsRemote.OnClientEvent:Connect(function()
print("got")
wait(dbtimes.db1MoveTime)
dbs.db1Move = false
end)
If anyone can help me I would be very grateful, thank you!