#Please help
24 messages · Page 1 of 1 (latest)
PlayerGui
Get the playerGui and change the label there instead
Getting player gui are from local players or Players > [your username] > playerGui
Then access the label there
Np
.
local Player = game.Players
local LocalPlayer = player.LocalPlayer
local PlayerGui = LocalPlayer.PlayerGui
Make sure it's a local script
And I put this into where?
** You are now Level 1! **
It's supposed to be a alarm system where the name will also print on a part then
Local script
You can only access playerGui in a local script
Unless you use a function that returns player
I use that for the output print
function Detector:handleTouch(partTouched)
local partParent = partTouched.Parent
local humanoid = partParent:FindFirstChild("Humanoid")
if humanoid then
local character = partParent
local isOnTable = self:checkPlayer(character)
if isOnTable == false then
print(partParent.Name .. " was detected. ")
end
end
end
I DID IT
YES
I changed it to this