Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Can I have help with the most simple scripting ever?

game.ReplicatedStorage.Ragdoll.OnServerEvent:Connect(function()
	-- so what would I put here to make the person reset when they click the button
	print("Ragdoll Fired")
end)

1 answer

✓ Accepted answer

What are you trying to do firstly, secondly why do you need to fire a remote event just to kill someone? You can easily do that inside the client or server sided. You can kill a player from a local script or a script doesn't matter. Btw the way you kill a player is this.

player.Character.Humanoid.Health = 0

That is all.

Btw you MUST define player. If it is a local script the player would be defined like this.

local player = game.Players.LocalPlayer

If it is a normal script then it depends on the case.

5 comments

0

Server* not normal. localscripts are not abnormal or yes?

0

^ true but a server script is just simply called script.

0

Thank you, I was trying to fire a remote event.

0

@Incapaz, why you so salty about calling scripts "normal scripts" nothing wrong with calling them Scripts. The object is actually called Script not serverscript! (Plus you can even put "server scripts" or scripts in partially client controlled places like the character)

0

When you say "script" you never know if a server or local. Nobody these days likes to specify the script type.

This discussion is preserved as it was. New answers, comments, and votes are closed.