I what to make a gui that when a remote event fires it fades in the out using the tween service.
The issus I am not sure what s wrong with this as there are not viewable errors
and i dont think my other script is the problem because that is working fine with it all doing what I coded
I have tried searching around about this but I could not find any good explanations
Local Script
local TweenService = game:GetService("TweenService") --tween service for tweening
script.Parent.Parent.MainFrame.MenuFrame.Teliport.OnClientEvent:Connect(function() --getting my remote event
local screentweenInfo = TweenInfo.new(0.45, Enum.EasingStyle.Sine) --my tween info
local screenFade0 = TweenService:Create(script.Parent, screentweenInfo, {BackgroundTransparency = 0})--tween part1
local screenFade1 = TweenService:Create(script.Parent, screentweenInfo, {BackgroundTransparency = 1})--tween part 1
screenFade0:Play()--running tween
wait(0.1)--short delay
screenFade1:Play()
end)
Edit: I just found out that your remote event is in the ui (i think) and not is ReplicatedStorage, remotes should be in a place where both the server and the client can reach