i have this error for some reason on the line summonevent.OnServerEvent:connect(function(Player)
connect is not a valid member of RemoteEvent "ReplicatedStorage.OnServerEvent" pls help?
2 answers
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.
1 comment
i did that too
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
1 comment
k so my code is local summonevent = game:GetService("ReplicatedStorage") local TweenService = game:GetService("TweenService") local Debris = game:GetService("Debris") summonevent.OnServerEvent:Connect(function(Player) local Charecter = Player.Chareccter if not Charecter:FindFirstChild("Stand") then local Standclone = game:GetService("ServerStorage"):WaitForChild("StandModel") Standclone
This discussion is preserved as it was. New answers, comments, and votes are closed.

2 comments
use :Connect
i did try Connect but it still doesnt work