Advertisement
Kaemi

Da King's Ice Walls

May 14th, 2017
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.44 KB | None | 0 0
  1. --ILL MAKE A GREAT WALL
  2. plr = game.Players.LocalPlayer
  3. char = plr.Character
  4. rig = char.Torso
  5. mouse = plr:GetMouse()
  6. hair = Instance.new("Part", char.Head)
  7. hair.CanCollide = false
  8. mesh = Instance.new("SpecialMesh", hair)
  9. mesh.MeshId = "rbxassetid://1323306"
  10. mesh.TextureId = "rbxassetid://1323305"
  11. weld = Instance.new("Weld", hair)
  12. weld.Part1 = hair
  13. weld.Part0 = char.Head
  14. mesh.Scale = Vector3.new(1,1,1)
  15. weld.C0 = weld.C0 * CFrame.new(0,0.3,0)
  16. music = Instance.new("Sound", rig)
  17. music.SoundId = "http://roblox.com/asset?id=169869850"
  18. music.Looped = true
  19. music.Volume = 2
  20. music1 = Instance.new("Sound", rig)
  21. music1.SoundId = "http://www.roblox.com/asset/?id=268249319"
  22. music1.Looped = true
  23. music1.Volume = 10
  24. music:Play()
  25. music11 = Instance.new("Sound", rig)
  26. music11.SoundId = "rbxassetid://378126370"
  27. music11.Looped = true
  28. music11.Volume = 30
  29. print(char.HumanoidRootPart.RootJoint.C0)
  30. for i = 1,10 do
  31.     wait()
  32.     char.Torso["Right Shoulder"].C0 = char.Torso["Right Shoulder"].C0 * CFrame.Angles(-0.009,0,0)
  33.     char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0 * CFrame.Angles(-0.009,0,0)
  34.     char.Torso["Right Hip"].C0 = char.Torso["Right Hip"].C0 * CFrame.Angles(-0.009,0,0)
  35.     char.Torso["Left Hip"].C0 = char.Torso["Left Hip"].C0 * CFrame.Angles(-0.009,0,0)
  36. end
  37. wait(1)
  38. wall = false
  39. print(rig["Right Shoulder"].C0)
  40. function key(key)
  41.     key = key:lower()
  42.         if not wall then
  43.     if key == "q" then
  44.                 wall = true
  45.         game.Chat:Chat(char.Head,"Dat Ice Wall Coming right up :3","Green")
  46.         for i = 1,10 do
  47.             wait()
  48.             char.Torso["Right Shoulder"].C0 = char.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,0.2)
  49.         end
  50.         wait(2)
  51.         local WALL = Instance.new("Part",rig)
  52.         WALL.Anchored = true
  53.         WALL.CanCollide = false
  54.         WALL.Position = rig.Position
  55.         WALL.CFrame = WALL.CFrame * CFrame.new(0,-70,45)
  56.         WALL.Size = Vector3.new(1000,100,75)
  57.         WALL.Material = "Ice"
  58.         WALL.BrickColor = BrickColor.new("Light blue")
  59.         WALL.CanCollide = true
  60.         music1:Play()
  61.         for i = 1,200 do
  62.             wait(0.01)
  63.             WALL.CanCollide = true
  64.             char.Humanoid.CameraOffset = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))
  65.             WALL.CFrame = WALL.CFrame * CFrame.new(0,0.3,0)
  66.         end
  67.                 wall = false
  68.         music1:Stop()
  69.         char.Humanoid.CameraOffset = Vector3.new(0,0,0)
  70.         wait(2)
  71.         for i = 1,10 do
  72.             wait()
  73.             char.Torso["Right Shoulder"].C0 = char.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,-0.2)
  74.         end
  75.         char.Humanoid.WalkSpeed = 16
  76.         char.Humanoid.JumpPower = 50
  77.         wait(60)
  78.         music1:Play()
  79.                 wall = false
  80.         for i = 1,200 do
  81.             wait(0.01)
  82.             WALL.CFrame = WALL.CFrame * CFrame.new(0,-0.3,0)
  83.         end
  84.         music1:Stop()
  85.         WALL:destroy()
  86.     end
  87. end
  88.     if key == "e" then
  89.         char.Humanoid.WalkSpeed = 0
  90.         char.Humanoid.JumpPower = 0
  91.         for i = 1,10 do
  92.             wait()
  93.             char.Torso["Right Shoulder"].C0 = char.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,0.3)
  94.         end
  95.         music11:Play()
  96.         game.Chat:Chat(char.Head,"ILELIOILELI","Green")
  97.     end
  98. end
  99. function nuchina(key)
  100.     key = key:lower()
  101.     if key == "e" then
  102.         for i = 1,10 do
  103.             wait()
  104.             char.Torso["Right Shoulder"].C0 = char.Torso["Right Shoulder"].C0 * CFrame.Angles(0,0,-0.3)
  105.         end
  106.         char.Humanoid.WalkSpeed = 16
  107.         char.Humanoid.JumpPower = 50
  108.         rig["Right Shoulder"].C0 = CFrame.new(1, 0.5, 0, 0, -0.0898785666, 0.995952964, 0, 0.995952964, 0.0898785666, -1, 0, 0)
  109.         music11:Stop()
  110.     end
  111. end
  112. mouse.KeyUp:connect(nuchina)
  113. mouse.KeyDown:connect(key)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement