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

How to fix touched event not firing????

Asked by 3 years ago

so i want make a part if it touched a gui appears and i want to make so if a part touched the part transparency set to 0 but it didn't work

the Gui appears local script :

script.Parent.Touched:Connect(function(hit)
    local char = hit.Parent
    if char then
        local player = game.Players:GetPlayerFromCharacter(char)
        if player then
            script.Parent.ROBUX:Play()
            local Endings = player.StarterGui:WaitForChild("Endings")
            Endings:WaitForChild("RobuxEnding").Visible = true
            wait(1)
            Endings:WaitForChild("RobuxEnding").TextButton.Visible = true
        end
    end
end)

the transparency local script :

script.Parent.Touched:Connect(function(hit)
    local char = hit.Parent
    if char then
        script.Parent.Transparency = 0
    end
end)
0
i use that before in my other games it works but just in this game totosimamora608 61 — 3y
0
I don’t see any errors daokhiethy 25 — 3y

Answer this question