I'm developing a game where the player is teleporting to different places (under one game). I was wondering if there is a way to hide the screen showing the place name and who its by. I currently use a script that makes a ScreenGUI Frame to appear and thats it.
Script For Making GUIs appear when touching a part
script.Parent.Touched:connect(function(hit)
if hit.Parent:FindFirstChild('Humanoid') then
game.Players:GetPlayerFromCharacter(hit.Parent).PlayerGui.ScreenGui.Frame.Visible = true
game.Players:GetPlayerFromCharacter(hit.Parent).PlayerGui.ScreenGui.ImageLabel.Visible = true
game.Players:GetPlayerFromCharacter(hit.Parent).PlayerGui.ScreenGui.TextLabel.Visible = true
end
end)
Script For Teleporting To A Place
local TeleportService = game:GetService("TeleportService")
local placeID = 3217710173
local function onPartTouch(otherPart)
wait(2)
local player = game.Players:GetPlayerFromCharacter(otherPart.Parent)
if player then
TeleportService:Teleport(placeID, player)
end
end
script.Parent.Touched:Connect(onPartTouch)
I want it to act a lot like Vesteria's Teleporting system.
