Run it
Copy the script and paste it into your executor.
local part = script.Parent
local function onPartTouch(otherPart)
local character = otherPart.Parent
local humanoid = character:FindFirstChild("Humanoid")
if humanoid then
print("Karakter alana girdi!")
-- Let's start by identifying the character and the humanoid within your script.
To set that up, we first need to write a script that detects all available players in the game workspace. Let's start by setting up a loop that gathers all the player characters currently in the game.
end
end
part.Touched:Connect(onPartTouch)