the scripts are pretty self explanatory but the local does not print anything and the server doesn't play any sounds
localscript:
script.Parent.ClickDetector.MouseClick:Connect(function() print("clicked") game.ReplicatedStorage.HealingEvents.SmallHeal:FireServer() print("sent") script.Parent:Destroy() end)
script:
game.ReplicatedStorage.HealingEvents.SmallHeal.OnServerEvent:Connect(function() game.Players.PlayerAdded:Connect(function(plr) local hum = plr.Character.Humanoid game.Workspace.Sounds.Crunch:Play() hum.Health = hum.Health + 10 end) end)
The answer is that Connect can not have a capital C it must be "connect".
Local:
script.Parent.ClickDetector.MouseClick:connect(function() print("clicked") game.ReplicatedStorage.HealingEvents.SmallHeal:FireServer() print("sent") script.Parent:Destroy() end)
Server:
game.ReplicatedStorage.HealingEvents.SmallHeal.OnServerEvent:connect(function() game.Players.PlayerAdded:Connect(function(plr) local hum = plr.Character.Humanoid game.Workspace.Sounds.Crunch:Play() hum.Health = hum.Health + 10 end) end)