I’m currently making a .Chatted event for a GUI to change it image, here’s my script
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(msg)
if msg == "t" then
player:WaitForChild("PlayerGui").ScreenGui.DChar.Image = "rbxassetid://"
end
end)
end)
for some reasons the “t” can only be typed once and can’t be typed again
Yes, when I tried playing it and typed “t” the ScreenGui image changes, when the Image changes again and I try typing “t” again, the image didn’t change
Where are you changing the image between saying t the two times? If that bit is on the client, the server won’t see the change so setting the Image again won’t do anything as it thinks the image is the same as it was last time they said t.
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(msg)
if msg == "t" or "T" then
player:WaitForChild("PlayerGui").ScreenGui.DChar.Image = "rbxassetid://"
wait(1)
player:WaitForChild("PlayerGui").ScreenGui.DChar.Image = "rbxassetid://"
end
end)
end)