My UI seems to be not appearing! When touching the block the UI was suppose to turn the visible property to true which it did but it still wont appear. I also used a RemoteEvent for the whole process.
I have been trying for hours and have given up most of the time. But this time I’m not giving up and I’m reaching out to the DevFourm members for help!
I would really appreciate if there’s a mistake that you guys can point out for me so my creation can work. I really thought that this wouldn’t be a problem but I guess I was wrong.
local Teleporter = game.Workspace.Teeportere
local location = game.Workspace.Locatio
local RS = game:GetService("ReplicatedStorage")
local LoadingScreen = RS:WaitForChild("LoadingScreen")
local UI = game.StarterGui.Loading:WaitForChild("Frame")
Teleporter.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Humanoid") then
game.Players.LocalPlayer.Character:MoveTo(location.Position + Vector3.new(0,20,0))
end
wait(.05)
LoadingScreen:FireServer(UI)
end)
--
--
--
--
//The script for after firing the event--
local RS = game:GetService("ReplicatedStorage")
local LoadingScreen = RS:WaitForChild("LoadingScreen")
local UI = game.StarterGui.Loading:WaitForChild("Frame")
LoadingScreen.OnServerEvent:Connect(function(player, UI)
UI.Visible = true
end)
Why are you setting the UI to enabled in the server?
Setting the visibility in the StarterGui won’t change to the player’s, the GUIs will get replicated to the PlayerGui in the Player service. Did you set the visibility of the GUI from the player’s GUI?
I’ve tried multiple ways including you’re suggestion. It just has the boolean true for the visible property and I really don’t know why its not appearing? One more thing to add is that this issue started happening to me today. Couple other days the same code I’m using right now worked perfectly.