Sc4pterR0bl0x

Earthquake ROBLOX game script!

Jul 18th, 2020
1,062
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. -- Make sure you have the model 'Map', With your map inside
  2. -- Made my Sc4pterR0bl0x
  3. local Map = game.Workspace.Map:GetChildren()
  4. script.Parent.MouseButton1Click:Connect(function()
  5.  
  6.  
  7. -- create a sound
  8. local sound = Instance.new("Sound", game.Workspace)
  9. sound.SoundId = "rbxassetid://1878443849"
  10.  
  11. if not sound.IsLoaded then
  12. sound.Loaded:wait()
  13. end
  14.  
  15. -- listen for events
  16. sound.Played:Connect(function(soundId)
  17. print("Sound.Played event")
  18. end)
  19.  
  20. sound.Paused:Connect(function(soundId)
  21. print("Sound.Paused event")
  22. end)
  23.  
  24. sound.Resumed:Connect(function(soundId)
  25. print("Sound.Resumed event")
  26. end)
  27.  
  28. sound.Stopped:Connect(function(soundId)
  29. print("Sound.Stopped event")
  30. end)
  31.  
  32. sound:Play()
  33. print("play", sound.Playing, sound.TimePosition) -- play true 0
  34.  
  35.  
  36. for i, v in pairs(Map) do
  37. game.Workspace.Gravity = 10
  38. v.Anchored = false
  39. game.Workspace.Gravity = 30
  40. end
  41. end)
Advertisement
Add Comment
Please, Sign In to add comment