Advertisement
Guest User

Sonic's

a guest
May 20th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.99 KB | None | 0 0
  1. -----------------------------------------------------
  2. --Sonic's Schoolhouse V1.1, by PRGSPY.
  3. --With Textures Ripped by ManuB05
  4. -----------------------------------------------------
  5. local playere = game:GetService("Players").LocalPlayer
  6. local character = playere.Character
  7. local human = character:WaitForChild("Humanoid")
  8. local slides = {"rbxassetid://1775750905", "rbxassetid://1775750765", "rbxassetid://1775750896", "rbxassetid://1775750765", "rbxassetid://1775750905"}
  9. local messages = {"Only Insta-kill moves can flatten Me!", "If you don't get what you're looking for when you ask for help, try again!", "[N - O = P]E", "[N * A = H]", "Don't touch my quills, because it will hurt.", "The Textures used for this script were ripped by ManuB05.", "This script was originally made by PRGSPY."}
  10. local Mouse = playere:GetMouse()
  11. local UserInputService = game:GetService("UserInputService")
  12. x = {5, 0}
  13. y = {6, 0}
  14. eggs = {1.25, 0}
  15. --Making the Player Invisible, and invinicible
  16. repeat wait() until character.Torso:FindFirstChild("roblox") ~= nil and character.Head:FindFirstChild("face") ~= nil
  17. for i,v in pairs(character:GetChildren()) do
  18. if v.ClassName == "Part" or v.ClassName == "MeshPar" then
  19. v.Transparency = 1
  20. end
  21. end
  22. wait(0.01)
  23. for q,t in pairs(character:GetChildren()) do
  24. if t.ClassName == "Accessory" or t.ClassName == "Hat" then
  25. t.Handle.Transparency = 1
  26. end
  27. end
  28. character.Head.face.Transparency = 1
  29. human.MaxHealth = math.huge
  30. human.Health = human.MaxHealth
  31. human.JumpPower = 100
  32. human.WalkSpeed = 64
  33. local ff = Instance.new("ForceField")
  34. ff.Parent = character
  35. ff.Visible = false
  36. --Setting up the BillboardGui
  37. local floatie = Instance.new("BillboardGui")
  38. floatie.Parent = character.Head
  39. floatie.Adornee = character.Head
  40. floatie.Size = UDim2.new(unpack(x), unpack(y, 0))
  41. print("Main container created")
  42. local imageman = Instance.new("ImageLabel")
  43. imageman.Parent = floatie
  44. imageman.Image = "rbxassetid://1775750905"
  45. imageman.BackgroundTransparency = 1
  46. imageman.BorderSizePixel = 0
  47. imageman.Size = UDim2.new(unpack(eggs), unpack(eggs, 0))
  48. local clickie = Instance.new("ClickDetector")
  49. clickie.Parent = character.HumanoidRootPart
  50. clickie.MaxActivationDistance = math.huge
  51. clickie.Parent.Transparency = 0.99
  52. print("image created")
  53. local song = Instance.new("Sound")
  54. song.SoundId = "rbxassetid://1791879624"
  55. song.Name = "Song"
  56. song.Looped = true
  57. song.Volume = 2
  58. song.Parent = floatie
  59. local death = Instance.new("Sound")
  60. death.SoundId = "rbxassetid://571879674"
  61. death.Name = "ded"
  62. death.Looped = false
  63. death.Volume = 1
  64. death.Parent = floatie
  65. local hits = Instance.new("Sound")
  66. hits.SoundId = "rbxassetid://131864673"
  67. hits.Name = "ded"
  68. hits.Looped = false
  69. hits.Volume = 1
  70. hits.Parent = floatie
  71. --The Good Stuff
  72. function onTouched(hit)
  73. if hit.Parent:findFirstChild("Humanoid") then
  74. hit.Parent.Humanoid:TakeDamage(hit.Parent.Humanoid.MaxHealth / 10)
  75. hit.Parent.Humanoid.Sit = true
  76. hits:Play()
  77. if hit.Parent.Humanoid.MaxHealth == math.huge then
  78. hit.Parent.Humanoid.Health = 0
  79. end
  80. if hit.Parent.Humanoid.Health == 0 then
  81. death:Play()
  82. end
  83. end
  84. end
  85.  
  86. clickie.MouseClick:connect(function(player)
  87. local mem = Instance.new("Message")
  88. mem.Parent = game.Workspace
  89. mem.Text = "Reply to request for help by ".. player.name ..": " .. messages[math.random(1,#messages)]
  90. wait(3)
  91. mem:Destroy()
  92. end)
  93.  
  94. Mouse.KeyDown:connect(function(key)
  95. if (key=="e") then
  96. song:Stop()
  97. end
  98. if (key=="q") then
  99. song:Play()
  100. end
  101. if (key=="t") then
  102. if imageman ~= nil then
  103. for i = 1,#slides do
  104. imageman.Image = slides[i]
  105. wait(0.1)
  106. end
  107. end
  108. end
  109. if (key=="y") then
  110. local mem = Instance.new("Message")
  111. mem.Parent = game.Workspace
  112. mem.Text = "A message from Sonic for those who need help: " .. messages[math.random(1,#messages)]
  113. wait(3)
  114. mem:Destroy()
  115. end
  116. end)
  117. character.HumanoidRootPart.Touched:connect(onTouched)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement