subaru112g

hello

Feb 26th, 2019
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. local char = owner.Character
  2. local t = char.Torso
  3. local wai = false
  4. local mus = nil
  5. mus = Instance.new("Sound",char)
  6. mus.SoundId = "rbxassetid://2900080569"
  7. mus.Volume = 1
  8. mus.Pitch = 1
  9.  
  10. local mus2 = nil
  11. mus2 = Instance.new("Sound",char)
  12. mus2.SoundId = "rbxassetid://1262465930"
  13. mus2.Volume = 1
  14. mus2.Pitch = 1
  15.  
  16. function touch(hit)
  17. if not(wai == true) then
  18. if hit.Parent ~= nil then
  19. local hum = hit.Parent:findFirstChildOfClass("Humanoid")
  20. if hum ~= nil then
  21. local plr = owner.Parent:FindFirstChild(hit.Parent.Name)
  22. if plr ~= nil then
  23. wai = true
  24. plr.Character = nil
  25. local ScreenGui = Instance.new("ScreenGui")
  26. local ImageLabel = Instance.new("ImageLabel")
  27. --Properties:
  28. ScreenGui.Parent = owner.Parent:FindFirstChild(plr.Name):WaitForChild("PlayerGui")
  29. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  30.  
  31. ImageLabel.Parent = ScreenGui
  32. ImageLabel.BackgroundColor3 = Color3.new(1, 1, 1)
  33. ImageLabel.Size = UDim2.new(0, 1953, 0, 1039)
  34. ImageLabel.Image = "rbxassetid://1433009872"
  35. mus:Play()
  36. wait(1)
  37. mus2:Play()
  38. wait(2)
  39. wai = false
  40. end
  41. end
  42. end
  43. end
  44. end
  45.  
  46. t.Touched:connect(touch)
  47.  
  48. local timepos = nil
  49. local timepos2 = nil
  50.  
  51. while true do
  52. wait()
  53. if mus.Parent == char then
  54. mus.SoundId = "rbxassetid://2900080569"
  55. timepos = mus.TimePosition
  56. mus.Pitch = 1
  57. mus.Volume = 1
  58.  
  59. else
  60. mus = Instance.new("Sound", char)
  61. mus.TimePosition = timepos
  62. end
  63. if mus2.Parent == char then
  64. mus2.SoundId = "rbxassetid://1262465930"
  65. timepos2 = mus2.TimePosition
  66. mus2.Pitch = 1
  67. mus2.Volume = 1
  68.  
  69. else
  70. mus2 = Instance.new("Sound", char)
  71. mus2.TimePosition = timepos
  72. end
  73.  
  74. end
Add Comment
Please, Sign In to add comment