Hi,
lol other than my clothing store i’m working on a tower of hell / cotton tower type game
So in the game cotton tower once you step on a ‘kill brick’ some of your health is taken away.
In my game I basically want to have a kill brick but takes half of your health away. (50 HEALTH)
How would I do this? I can’t find anything in the toolbox and I don’t want to use free models because i’m learning to do this on my own. Do I script?
script.Parent.Touched:Connect(function(hit) -- starts this function once the part gets touched
if hit.Parent:FindFirstChild("Humanoid") then -- finds if the thing that touched the part has a humanoid in it
hit.Parent.Humanoid:TakeDamage(50) -- player takes 50 damage
end
end)
3 Likes
But make sure you put the script in the part
2 Likes
So is this a local script or script and do I script this in a normal part or a kill brick from the toolbox? Sorry, I don’t script or anything.
Normal Script, inside the part
1 Like
just put a normal script inside a normal part it will be a kill brick
1 Like
Just for clarification, you’d want to handle Damage Scripts on the server side, so make it a Server Script 
Do you mean Server Script as in ServerScriptService?
When I mean Server Scripts, I mean Regular Scripts (With no icon in the script) so no
1 Like
the server script = normal script