Pls help me with this, I wanted to make a typewalker animation text with touched function
I tried this in the gui
game.Workspace.Part.Touched:Connect(function(hit)
Local h = hit.Parent:FindFirstChild("Humanoid")
If h then
Local text = "My text"
for I = 1, #text do
script.Parent.Text = string.sub(text, 1, i)
wait(0.3)
end
end
end)
It doesn't work nothing happens I also tried on a local script(not the same)
game.StarterGui.LocalScript.Disabled = true
game.Workspace.Part.Touched:connect(function(hit)
Local h = hit.Parent:FindFirstChild("Humanoid")
If h then
game.StarterGui.LocalScript.Disabled = false
end
end)

1 comment
i in first script should be small, i know, thats not an error, that because im on mobile