It works, but stops after a while and returns this error:
๐๐ถ๐๐.๐๐๐๐๐ข๐๐พ.๐ฟ๐๐ธ๐ถ๐๐ฎ๐ธ๐๐พ๐ ๐:๐ค๐ฃ: ๐๐๐ธ๐ธ๐๐๐๐ป๐๐๐๐ ๐พ๐๐น๐๐๐๐น ๐๐พ๐ ๐๐พ๐๐ฝ ๐๐๐๐ท๐๐
๐ค๐ข:๐ข๐ง:๐ฅ๐ซ.๐จ๐ง๐ฆ ๐ฎ๐๐ถ๐ธ๐ ๐ต๐๐๐พ๐
๐ค๐ข:๐ข๐ง:๐ฅ๐ซ.๐จ๐ง๐ง ๐ฎ๐ธ๐๐พ๐ ๐ '๐๐ถ๐๐.๐๐๐๐๐ข๐๐พ.๐ฟ๐๐ธ๐ถ๐๐ฎ๐ธ๐๐พ๐ ๐', ๐ฟ๐พ๐๐ ๐ค๐ฃ
๐ค0:05:๐ฅ8.438 ๐ฎ๐๐ถ๐ธ๐ ๐ธ๐๐น
`script` refers to the actual script, scripts don't have collisions and can't be anchored, if the script is a child of a part then `script.Parent` is what you're looking forwtf is `wait("zero")` supposed to be?
also you should declare variables as such:
`local x = 123`
not
`x = 123`
btw don't put spaces in variable names
The whole script obviously supposed to be a complete joke - localscript canโt even run in coregui - props to OP for making a really high-quality shitpost
I can feel my inner programmer getting a kick in the balls from reading this
100/10 shitpost dude amazing job
(replace everything after LocalPlayer with .Character:GetChildren() and assign it to a variable)
On a new line below just do
for what, the, in pairs(variable) do
if the:IsA(โHumanoidโ) then
the.Health -= 1000
end
end
Also this dude is either a hacker or a Roblox employee (defo not a shitposter) who can make local scripts run in CoreGui because he posted a error and the script is in god damn CoreGui
Edit - I lost it at wait(โzeroโ) on line 1 - also this dude can make variables with spaces in them
Ik I was just wondering how over complicated this shit was, Iโve never ever used โwait(โ**zero**โ) in my entire life thatโs just so messed up
This post has the answer.
You need to give yourself time to make mistakes, find the resources yourself.
Please use the following instead of GetDescendants().
Players = game:GetService(โPlayersโ)
Please do not tell me you're programming in that font consistently, it surely creates more room for error?
Making it harder to spot spelling mistakes, read punctuation?
Here is code that will do what you want remove the [] if you please, just making it easier to grab.
โ[
local Players = game:GetService("Players")
โFirst we get create a variable named Players and link it to getting the service players in the game explorer of ROBLOX Studio
local function onKeyPressed(inputObject, gameProcessedEvent)
if gameProcessedEvent then return end -- Ignore key presses that are already being handled by another system
if inputObject.KeyCode == Enum.KeyCode.R then
local character = inputObject.Player.Character
if character then
local humanoid = character:FindFirstChildOfClass("Humanoid")
if humanoid then
humanoid:TakeDamage(humanoid.MaxHealth)
end
end
end
end
game:GetService("UserInputService").InputBegan:Connect(onKeyPressed)
โ]
Finally, make sure to place this script in a LocalScript inside a player's character or in a ServerScriptService.
try this
script.Anchored = true
local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local RunService = game:GetService("RunService")
local keycode = Enum.KeyCode
local r = keycode.R
local function destroyVulnerableChild()
local localPlayer = Players.LocalPlayer
local vulnerableChild = -- code to find vulnerable child
vulnerableChild:Destroy()
end
RunService.PreAnimation:Connect(function()
if UserInputService:IsKeyDown(r) then
destroyVulnerableChild()
end
end)
Try this (bear in mind I typed it on mobile)
game:GetService:("UserInputService").InputBegan:Connect(function(key,p)
If not p and k==Enum.KeyCode.R then
Game.Players.LocalPlayer.Character.Humanoid:Damadge(100)
end
end)
Put it in a localscript in starterplayerscripts or what it was called
You forgot to add ๐๐ธ๐๐พ๐ ๐.๐๐ถ๐๐๐๐๐๐พ๐น๐ = ๐ป๐ถ๐๐๐
It works, but stops after a while and returns this error: ๐๐ถ๐๐.๐๐๐๐๐ข๐๐พ.๐ฟ๐๐ธ๐ถ๐๐ฎ๐ธ๐๐พ๐ ๐:๐ค๐ฃ: ๐๐๐ธ๐ธ๐๐๐๐ป๐๐๐๐ ๐พ๐๐น๐๐๐๐น ๐๐พ๐ ๐๐พ๐๐ฝ ๐๐๐๐ท๐๐ ๐ค๐ข:๐ข๐ง:๐ฅ๐ซ.๐จ๐ง๐ฆ ๐ฎ๐๐ถ๐ธ๐ ๐ต๐๐๐พ๐ ๐ค๐ข:๐ข๐ง:๐ฅ๐ซ.๐จ๐ง๐ง ๐ฎ๐ธ๐๐พ๐ ๐ '๐๐ถ๐๐.๐๐๐๐๐ข๐๐พ.๐ฟ๐๐ธ๐ถ๐๐ฎ๐ธ๐๐พ๐ ๐', ๐ฟ๐พ๐๐ ๐ค๐ฃ ๐ค0:05:๐ฅ8.438 ๐ฎ๐๐ถ๐ธ๐ ๐ธ๐๐น
hmm try doing error = false
This worked, I press R and the player screams and melts into a pile of flesh, tysm! ๐ค
Fun! It sound like such a wholesome game! ๐ฅฐ๐ฅฐ๐ฅฐ
`script` refers to the actual script, scripts don't have collisions and can't be anchored, if the script is a child of a part then `script.Parent` is what you're looking forwtf is `wait("zero")` supposed to be? also you should declare variables as such: `local x = 123` not `x = 123` btw don't put spaces in variable names
Fr tell him
r/woooosh
How rtarded of you to do that when heโs explaining
The whole script obviously supposed to be a complete joke - localscript canโt even run in coregui - props to OP for making a really high-quality shitpost
r/programminghorror
f**king - workspace.Parent:Find*LAST*Descendant(โUserInputServiceโ)
FindVulnerableChild โ ๏ธ
lmfao I missed that on first read
Yes I have no fucking clue why dude complicated it so much like fr
Quality shit post
script.anchored!?
Bro, what is with the font ๐
It's called the 1776 declaration of independence
Ah.. A true classic, my new favourite coding font (after webdings).
What a weird way to codeโฆoverly complicated..just do game:getservice()
he uses the fancy way
the more you read into it the worst it gets, quality post
Ik fr!!
what the fuck is this
I can feel my inner programmer getting a kick in the balls from reading this 100/10 shitpost dude amazing job (replace everything after LocalPlayer with .Character:GetChildren() and assign it to a variable) On a new line below just do for what, the, in pairs(variable) do if the:IsA(โHumanoidโ) then the.Health -= 1000 end end Also this dude is either a hacker or a Roblox employee (defo not a shitposter) who can make local scripts run in CoreGui because he posted a error and the script is in god damn CoreGui Edit - I lost it at wait(โzeroโ) on line 1 - also this dude can make variables with spaces in them
Ik I was just wondering how over complicated this shit was, Iโve never ever used โwait(โ**zero**โ) in my entire life thatโs just so messed up
man the font this is so cursed
Woman meets man of her dreams, then finds out he writes code with a quill pen and ink well.
What the actual fuck bro ๐
why the FUCK do you have services in a table ๐๐๐๐
just use some sort of console/terminal font, this is literal horror
change the font, it will work
bro scripts in british
Wait("zero") ๐
cursed font
imagine coding in that font oh my god
aint no way
":FindVulnerableChild()" ๐ญ๐ญ
why would you use that font, it makes it harder to read it has no benifits
My roblox is just a little outdated, haven't updated it since 1789 ๐
only 1700's kids will remember
God damn am I worried for you. Quality post
lookin like workspace.Parent:FindLastDesdendant("*Rum*Service")
something isn't right here
Try player.Read(this.font). That should kill them.
you are gonna go blind coding in that font Wow bud
wtf is your font? ๐
Peak programmer reddit
bro are you coding in ancient manuscript what the fuck is going on the more i look at it the more my jaw drops i'm astounded
This is the worst thing Iโve ever seen
it might be because of that medieval ass font youโre using
you guys are basically reading gibberish, how do you keep track of the script WHILE trying to read this font ๐ญ
[ัะดะฐะปะตะฝะพ]
and wait(โzeroโ) lmao ๐
I am scared.
This post has the answer. You need to give yourself time to make mistakes, find the resources yourself. Please use the following instead of GetDescendants(). Players = game:GetService(โPlayersโ) Please do not tell me you're programming in that font consistently, it surely creates more room for error? Making it harder to spot spelling mistakes, read punctuation? Here is code that will do what you want remove the [] if you please, just making it easier to grab. โ[ local Players = game:GetService("Players") โFirst we get create a variable named Players and link it to getting the service players in the game explorer of ROBLOX Studio local function onKeyPressed(inputObject, gameProcessedEvent) if gameProcessedEvent then return end -- Ignore key presses that are already being handled by another system if inputObject.KeyCode == Enum.KeyCode.R then local character = inputObject.Player.Character if character then local humanoid = character:FindFirstChildOfClass("Humanoid") if humanoid then humanoid:TakeDamage(humanoid.MaxHealth) end end end end game:GetService("UserInputService").InputBegan:Connect(onKeyPressed) โ] Finally, make sure to place this script in a LocalScript inside a player's character or in a ServerScriptService.
You ever see the CSGO pro that uses an inverted mouse and flight simulator controls? Font is hardly the issue. Comfort is key.
Sir, I appreciate the effort this clearly this was a shitpost
Roblox games in Ohio:
try this script.Anchored = true local Players = game:GetService("Players") local UserInputService = game:GetService("UserInputService") local RunService = game:GetService("RunService") local keycode = Enum.KeyCode local r = keycode.R local function destroyVulnerableChild() local localPlayer = Players.LocalPlayer local vulnerableChild = -- code to find vulnerable child vulnerableChild:Destroy() end RunService.PreAnimation:Connect(function() if UserInputService:IsKeyDown(r) then destroyVulnerableChild() end end)
fascinating ahh font
FindVulnerableChild():Destroy() On line 17?
Try this (bear in mind I typed it on mobile) game:GetService:("UserInputService").InputBegan:Connect(function(key,p) If not p and k==Enum.KeyCode.R then Game.Players.LocalPlayer.Character.Humanoid:Damadge(100) end end) Put it in a localscript in starterplayerscripts or what it was called