Advertisement
ARY106_7

سكربت يغير اسمك :)

Jul 4th, 2024
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. -- LD ALMAHRI --
  2. getgenv().name = "اكتب الشي الي تبيه يتغير اسمك هنا"
  3.  
  4.  
  5. local Plr = game.Players.LocalPlayer
  6. for Index, Value in next, game:GetDescendants() do
  7. if Value.ClassName == "TextLabel" then
  8. local has = string.find(Value.Text,Plr.Name)
  9. if has then
  10. local str = Value.Text:gsub(Plr.Name,name)
  11. Value.Text = str
  12. end
  13. Value:GetPropertyChangedSignal("Text"):Connect(function()
  14. local str = Value.Text:gsub(Plr.Name,name)
  15. Value.Text = str
  16. end)
  17. end
  18. end
  19.  
  20. game.DescendantAdded:Connect(function(Value)
  21. if Value.ClassName == "TextLabel" then
  22. local has = string.find(Value.Text,Plr.Name)
  23. Value:GetPropertyChangedSignal("Text"):Connect(function()
  24. local str = Value.Text:gsub(Plr.Name,name)
  25. Value.Text = str
  26. end)
  27. if has then
  28. local str = Value.Text:gsub(Plr.Name,name)
  29. Value.Text = str
  30. end
  31.  
  32. end
  33. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement