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

connect is not a valid member of RemoteEvent "ReplicatedStorage.OnServerEvent" pls help?

i have this error for some reason on the line summonevent.OnServerEvent:connect(function(Player)

2 comments

0

use :Connect

0

i did try Connect but it still doesnt work

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

0

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

0

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.