Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Can I have help with the most simple scripting ever?

Asked by 5 years ago
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

Log in to vote
0
Answered by
valchip 789 Moderation Voter
5 years ago

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.

0
Server* not normal. localscripts are not abnormal or yes? User#19524 175 — 5y
0
^ true but a server script is just simply called script. valchip 789 — 5y
0
Thank you, I was trying to fire a remote event. User#23357 0 — 5y
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) OBenjOne 190 — 5y
0
When you say "script" you never know if a server or local. Nobody these days likes to specify the script type. User#19524 175 — 5y
Ad

Answer this question