Attempt to call a RBXScriptSignal value

upgrade button:

script.Parent.MouseButton1Click:Connect(function(plr)
	game.ReplicatedStorage.Remotes.DoubleMoneyGainEvent:FireServer()
end)

RemoteEvent:

game.ReplicatedStorage.Remotes.DoubleMoneyGainEvent.OnServerEvent(function(plr)
	if plr.stats.DMGups.Value == 0 and plr.stats.Money.Value >= 10 then
		plr.stats.Money -= 10
		plr.stats.Multi *= 2
		plr.stats.DMGups += 1
	end
end)

1 Like

Can you send a screenshot of the hierarchy of DoubleMoneyGainEvent?

image

Change game.ReplicatedStorage to game:GetService("ReplicatedStorage")

1 Like

Oh. I see the error. You have to do game.ReplicatedStorage.Remotes.DoubleMoneyGainEvent.OnServerEvent:Connect(function(plr)

2 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.