summon.OnServerEvent:Connect(function(Player,isActive)
local Character = Player.character
local Humanoid = Character.Humanoid
local Humrp = Character.HumanoidRootPart
COMMUNITY QUESTION
on line one there's a error message saying OnServerEvent can only be used on the server?
1 answer
Your script is a LocalScript. OnServerEvent can only be used on a Server-sided Script/Normal script.
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
what do I do to make the script work?
If you haven't figured it out use OnClientEvent instead.