Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- ChargeOn ---
- local rs = game:GetService("ReplicatedStorage")
- local charge = rs.MusicBox:WaitForChild("ChargeON")
- local sCript = game.Workspace.AI.MusicBox:WaitForChild("Script")
- charge.OnServerEvent:Connect(function(player, sCript)
- game.Workspace.AI.MusicBox.Script.Disabled = true
- game.Workspace.AI.MusicBox.ChargingScript.Disabled = false
- end)
- --- ChargeOff ---
- local rs = game:GetService("ReplicatedStorage")
- local nocharge = rs.MusicBox:WaitForChild("ChargeOFF")
- local ChargesCript = game.Workspace.AI.MusicBox:WaitForChild("ChargingScript")
- nocharge.OnServerEvent:Connect(function(player, ChargesCript)
- game.Workspace.AI.MusicBox.Script.Disabled = false
- game.Workspace.AI.MusicBox.ChargingScript.Disabled = true
- end)
Advertisement
Add Comment
Please, Sign In to add comment