Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by 2 years ago

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

0
use :Connect SuperPuiu 497 — 2y
0
i did try Connect but it still doesnt work robu1920 0 — 2y

2 answers

Log in to vote
0
Answered by
Antelear 185
2 years ago

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.

0
i did that too robu1920 0 — 2y
Ad
Log in to vote
0
Answered by 2 years ago

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

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 robu1920 0 — 2y

Answer this question