#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)
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?
** You are now Level 8! **
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 💀
Today is the First Episode in the 2023 Beginner Scripting Series! Today we will be discussing Printing! Printing is vital in your scripting journey, so make sure to watch this video all the way through.
Follow the beginning of this video to Download Roblox Studio: https://www.youtube.com/watch?v=92byTX3elmY&t=621s
Join the Discord: https://d...
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
** You are now Level 3! **
oh and here bud
Here is a beginners guide to understanding and using CFrames. CFrames are super important and useful for any form of positioning and orienting of things in the workspace, so I hope this will help you with things like camera manipulation, even if you aren’t too good with the math involved. Coordinate Frames CFrame stands for ‘Coordinate Frame’,...
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