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

how do i give points when someone says yes to to a notification sender?

This is the game work in progress error code.

Players.maxfawks.PlayerScripts.NotificationSender:15: Incomplete statement: expected assignment or a function call

if text == "Yes!" then 	
	if text == "No!" then
		game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 5
	end
end





local bindableFunction = Instance.new("BindableFunction")
bindableFunction.OnInvoke = callback


re.OnClientEvent:Connect(function()

game.StarterGui:SetCore("SendNotification", 
	{
	
		Title = "Owner has joined!";
		Text = "I think it may be a good idea to be good;)";
		
		Icon = "rbxassetid://156507320";
		
		Duration = 10;
		
		Callback = bindableFunction;
		
		Button1 = "Yes!";
		Button2 = "No!"
	
	}
)

1 answer

Points service is deprecated, you'll have to find a workaround.

This discussion is preserved as it was. New answers, comments, and votes are closed.