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

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


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

1 answer

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

2 comments

0

what do I do to make the script work?

0

If you haven't figured it out use OnClientEvent instead.

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