i have this error for some reason on the line summonevent.OnServerEvent:connect(function(Player)
Roblox scripting is Case Sensitive, meaning you need to mean exactly what you mean.
:connect - roblox does not recognise this
:Connect - roblox recognises this
You need to be careful with how you write code as a whole, it's crucial in the future. Mark this answer if it helped.
the line of code should go:
summonevent.OnServerEvent:Connect(function(Player) end)
you can also put end) at the right side of the line of code if thats all you need to do, otherwise you can put some code in-between also make sure the capitalization of "summonevent" is correct