Categories > Exploiting > Roblox >
How do I loop this script
Posted
I want to loop this script so it can execute over and over again infinetly, but i dont know literally anything about lua.
local Char = game.Players.LocalPlayer.Character
Char.Head.Mesh.Parent = game.CoreGui
Char.Head:ClearAllChildren()
game.CoreGui.Mesh.Parent = Char.Head
Char.Head.Parent = game.Lighting
game.Lighting.Head.Parent = Char
For those wondering what this is, It removes the nametag above ur head so admins can't see it. However, When I respawn It comes back and admin's see it. That's why I made this thread.
https://gyazo.com/9e36f19dea3a77fbcdc641f0276c4cd8
"I'll have two number 9s, a number 9 large, a number 6 with extra dip, a number 7, two number 45s, one with cheese, and a large soda."
Replied
Included some comments incase you wanted to learn sum.
Here you go:
-- LocalPlayer is used multiple times
local LP = game.Players.LocalPlayer
local character = LP.Character
-- A simple loop (as the one ThatPhoenix used)
-- But this time with a timeout cause else it would execute like
-- a thousand times a second (output = crash)
while wait() do
if character == nil then
-- this will reset the character variable
-- in case the player reloads their character or gets killed
character = LP.Character or
LP.CharacterAdded:Wait() -- in-case the character is not ready yet, have the script wait for it.
end
--#original
character.Head.Mesh.Parent = game.CoreGui
character.Head:ClearAllChildren()
game.CoreGui.Mesh.Parent = character.Head
character.Head.Parent = game.Lighting
game.Lighting.Head.Parent = character
--#original
end
Cancel
Post
GitHub: https://github.com/sound-infinity
Discord: SoundInfinity#2135
Replied
if admins see it it means its server sided, u can only remove them on the client
Cancel
Post
https://cdn.discordapp.com/attachments/909012795851407390/927492917394821140/siggy.png
Replied
@69790its FE ur name actually gets removed op script
Cancel
Post
Added
@36999Thanks :)
Cancel
Post
https://gyazo.com/9e36f19dea3a77fbcdc641f0276c4cd8
"I'll have two number 9s, a number 9 large, a number 6 with extra dip, a number 7, two number 45s, one with cheese, and a large soda."
Replied
@70352no it wont.
Cancel
Post
https://cdn.discordapp.com/attachments/1023423265160560745/1132948683747500092/Frame_12x.png
https://cdn.discordapp.com/attachments/909012795851407390/927492917394821140/siggy.png
https://gyazo.com/9e36f19dea3a77fbcdc641f0276c4cd8
"I'll have two number 9s, a number 9 large, a number 6 with extra dip, a number 7, two number 45s, one with cheese, and a large soda."
Replied
@CJ99 if u remove something from a character in a exploit it only shows it for you :skull:
Cancel
Post
https://cdn.discordapp.com/attachments/909012795851407390/927492917394821140/siggy.png
Replied
@69813Can you literally go check it in-game and ask any person who has a decent amount of braincells if he can see your username
Cancel
Post
https://gyazo.com/9e36f19dea3a77fbcdc641f0276c4cd8
"I'll have two number 9s, a number 9 large, a number 6 with extra dip, a number 7, two number 45s, one with cheese, and a large soda."
Replied
while true do
wait (.0)
local Char = game.Players.LocalPlayer.Character
Char.Head.Mesh.Parent = game.CoreGui
Char.Head:ClearAllChildren()
game.CoreGui.Mesh.Parent = Char.Head
Char.Head.Parent = game.Lighting
game.Lighting.Head.Parent = Char
Cancel
Post
Users viewing this thread:
( Members: 0, Guests: 1, Total: 1 )
Cancel
Post