Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

GUI intro not working in local server?

Asked by 5 years ago

Hi,I made a intro gui and it's not working in the server ..I put the script in workspace ,so player can be connected to gui and in starter gui,I added destroy the script on touching..pls help.

0
Change the location of your script to Starterpack OR StarterGui. AIphanium 124 — 5y

2 answers

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

Put The Gui Inside Of The ServerStorage And Add The Script Inside Of The ServerScriptStorage

Try That.

game.Players.PlayerAdded:Connect(function(plr)
  local gui = game.ServerStorage:WaitForChild("ADD_NAME_HERE")
  gui:Clone().Parent = plr.PlayerGui
end)
0
WORKED.. ACTUALLY I COPIED THE SCRIPT TWO TIMES..ONE WITH DESTROY ABLE AND ONE WITH NON DESTROYS LE ..SO DIDNT WORK :) THANKS FOR HELP AnimeGamingEmperor -1 — 5y
Ad
Log in to vote
0
Answered by
Syclya 224 Moderation Voter
5 years ago

Put the script inside ServerScriptService.

game:GetService("Players").PlayerAdded:Connect(function(Player)
local PlayerGui = Player:WaitForChild("PlayerGui")
local GUI = PlayerGui:WaitForChild("GUI):Clone()
GUI.Parent = PlayerGui

Answer this question