local sp = script.Parent local Players = game:GetService("Players") local module = require(game.ServerScriptService.ModuleScript) local debounce = true local soundEffect = sp.Absorb local function MagicTouched(hit) local player = Players:GetPlayerFromCharacter(hit.Parent) if debounce and player and #sp:GetChildren() == 4 then debounce = false soundEffect:Play() sp.Orb:Destroy() debounce = true module.updateMagic(player,5) end end sp.Touched:Connect(MagicTouched)
Output ServerScriptService is not a valid member of DataModel
Use game:GetService("ServerScriptService") instead because the issue is most likely that the service is renamed