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

how would i use remote functions?

Asked by 4 years ago

I dont get my script it says InvokeServer is not a child of VIPAccess

script.Parent.MouseButton1Click:Connect(function()
    game.ReplicatedStorage.Events.VIPAccess.InvokeServer("Check")
end)

1 answer

Log in to vote
2
Answered by 4 years ago

you use :InvokeServer not .

script.Parent.MouseButton1Click:Connect(function()
    game.ReplicatedStorage.Events.VIPAccess:InvokeServer("Check") -- :InvokeServer instead of .InvokeServer
end)
Ad

Answer this question