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

Trying to make a wall that once a player passes though it brings up a text lable not working?

Asked by 5 years ago
Edited 5 years ago

wall = script.Parent wall.Touched:Connect(function(hit) local Players = game.Players.LocalPlayer local PlayerGui = Players.PlayerGui local human = game.Players:FindFirstChild(hit.Parent.Name) print('Touched') PlayerGui.ScreenGui.Talk1.Visible = true wait(8) PlayerGui.ScreenGui.Talk1.Visible = false script.Disabled = true print("SHHHH No talking") end end)
0
*IM NOT SURE* but it might be because the wall has the collisions off? try turning them on and check if it works. radusavin366 617 — 5y
0
nope nothing JDtheman29 0 — 5y
0
Try switching Players to plr. Vid_eo 126 — 5y
0
^literally does nothing but change a variable data type ISeeYourPost 8 — 5y

1 answer

Log in to vote
0
Answered by
Kojouro 15
5 years ago

You have an extra end that doesn't need to be there.

wall = script.Parent

wall.Touched:Connect(function(Players)  
    local Players = game.Players.LocalPlayer
    local PlayerGui = Players.PlayerGui
    local human = game.Players:FindFirstChild(hit.Parent.Name)
    print('Touched')

        PlayerGui.ScreenGui.Talk1.Visible = true
            wait(8)
        PlayerGui.ScreenGui.Talk1.Visible = false
    script.Disabled = true
        print("SHHHH No talking")
end)
0
I removed it for you, so it should look like that now. Kojouro 15 — 5y
0
Jesus, that is horrible indenting. Holy crap. DeceptiveCaster 3761 — 5y
0
I just took the script and removed the extra end, I did nothing else. Those indents were the original script. Kojouro 15 — 5y
0
This is my first time ok sorry JDtheman29 0 — 5y
Ad

Answer this question