#Im Trying To Make A Mechanic For A Game Where This Red Neon Killing Part Spreads Across The Map, And

66 messages · Page 1 of 1 (latest)

celest tinsel
#

hmm

#

maybe just

#
part.Touched:Connect(function(hit)
  
  if hit.Parent:FindFirstChildWhichIsA("Humanoid")
    --Do what ever you'd want :D
  end

end)
#

here's a simple script you can insert after part.Material is set

#

ah ok, here's what i'm guessing-

#

wait what?

#

am I dumb

#

or uh

#

is there an instance actually called TouchPart?????

#

oh gohd-

#

don't trust ai please

#

there is no such class

#

as touch part-

#

what????

#

PLEASE

#

LET ME

#

SCRIPT

#

PLS

#

OK

#

YEY FINALLY

#

SMTH INTERESTING!!!

#

hey uh btw

#

i'm making a game

#

and this is the exact

#

same

#

thing I did

#

in my game

#

so just lemme copy paste my code XDDDD

#

bait-and switch

#

uhhh it's not really published

#

but when it is

#

imma dm you

#

--Set this to whatever you would want
local takeDamage = 2

for _, thing in workspace:GetChildren() do

  if thing:IsA("BasePart") then
    --baseparts include meshes, parts and unions

    thing.Material = Enum.Material.Neon

    thing.Touched:Connect(function(hit)

      if hit.Parent:FindFirstChildWhichIsA("Humanoid") then
        hit.Parent:FindFirstChildWhichIsA("Humanoid"):TakeDamage(takeDamage)
      end

    end)

  end

end

#

it's as simple as copy paste

#

put this script in serverScriptService

#

np

#

i'm bored so thank you for making me un-bored

#

wow, those are total noobs

#

anyways

#

gl on ur coding adventure dude

#

now you know not to trust that AI

#

oh uh need advice?

slow heathBOT
#

studio** You are now Level 8! **studio

celest tinsel
#

ofc?

#

if u want to turn it off

#
local takeDamage = 2

for _, thing in workspace:GetChildren() do

  if thing:IsA("BasePart") and thing:IsA("SpawnLocation") == false then
    --baseparts include meshes, parts and unions

    thing.Material = Enum.Material.Neon

    thing.Touched:Connect(function(hit)

      if hit.Parent:FindFirstChildWhichIsA("Humanoid") then
        hit.Parent:FindFirstChildWhichIsA("Humanoid"):TakeDamage(takeDamage)
      end

    end)

  end

end
#

may I give you advice

#

on how to script

#

so u turn good?

#

start with this dude 💀

#

he's the best

#

he made me love and learn and enjoy coding

#

after you learn from this guy

#

just be curios

#

start looking at the developer forum

#

where Ilearned stuff

slow heathBOT
#

studio** You are now Level 3! **studio

celest tinsel
#

oh and here bud

#
#

thats when ur done doing the videos

#

oh fudge you don't want that right?

#
local takeDamage = 2

for _, thing in workspace:GetChildren() do

  if thing:IsA("BasePart") and thing:IsA("SpawnLocation") == false and thing.Name ~= "Baseplate" then
    --baseparts include meshes, parts and unions

    thing.Material = Enum.Material.Neon

    thing.Touched:Connect(function(hit)

      if hit.Parent:FindFirstChildWhichIsA("Humanoid") then
        hit.Parent:FindFirstChildWhichIsA("Humanoid"):TakeDamage(takeDamage)
      end

    end)

  end

end
#

there you go

#

we done here?

#

show me a vid please