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

How do I get this part to add a player name when it hits the sensors?

Asked by
TheePBHST 154
7 years ago
Edited 7 years ago

I was making a body scanner and I was confused on how to add a player name when they touch the sensor.

This is my script

function onTouched()
    local L_ENTER = script.Parent.Parent.LightEnter 
    local L_EXIT = script.Parent.Parent.LightExit

    L_ENTER.BrickColor = BrickColor.new("Bright green")
    L_EXIT.BrickColor = BrickColor.new("Bright green")
    wait(2)
    L_ENTER.BrickColor = BrickColor.new("Lily white")
    L_EXIT.BrickColor = BrickColor.new("Lily white")
    wait(5)
end

script.Parent.Touched:connect(onTouched)

What I'm trying to do now is how would I add a TextLabel in the ScrollingFrame without it over lapping with the player name (Just like the roblox chat)

Image of the Properties

Image of the Part

0
Change the position of it? I don't see any evidence of you attempting to write such code.. Shawnyg 4330 — 7y
0
It's where when a player touched the pad, it sends data of who stepped on it to the Part. TheePBHST 154 — 7y

Answer this question