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

on line one there's a error message saying OnServerEvent can only be used on the server?

Asked by 3 years ago
Edited 3 years ago

summon.OnServerEvent:Connect(function(Player,isActive) local Character = Player.character local Humanoid = Character.Humanoid local Humrp = Character.HumanoidRootPart

1 answer

Log in to vote
0
Answered by 3 years ago

Your script is a LocalScript. OnServerEvent can only be used on a Server-sided Script/Normal script.

0
what do I do to make the script work? NotDasouleater 0 — 3y
0
If you haven't figured it out use OnClientEvent instead. birds3345 177 — 3y
Ad

Answer this question