Advertisement
TheFlamingBlaster

flameutils

Mar 3rd, 2016
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.92 KB | None | 0 0
  1. -- FlameUtils version 1.0.0
  2. -- Anyone may modify or change any line within this script/program as long as credits to the orignal creator are left within
  3. -- If you'd like to run this script in ScriptBuilder, please do: hl/pastebin.com/raw/(link)
  4. -- More tbd
  5.  
  6. --
  7.  
  8.  
  9. -- Basic Identifiers
  10. -- This is used in all utilities, so, we'll define them now.
  11. -- You probably shouldn't need to modify any of these unless asked to do so.
  12.  
  13. local plr = game.Players.LocalPlayer -- Defining the local player, this is YOU when you run the script!
  14. local char = plr.Character -- Getting your player on Workspace.
  15. local version = "0.0.0 Pre-Alpha"
  16. local users = "" -- Put your name in the ""'s
  17. if users == "" then
  18. verinfo = ("FlameUtils, made by TheFlamingBlaster. This build's version is "..version )
  19. modified = false
  20. else
  21. verinfo = ("FlameUtils, made by TheFlamingBlaster with help of ".. users ..". This build's version is "..version )
  22. modifed = true
  23. end
  24. print("[FlameUtils Version Information]"..verinfo)
  25. platifer = true
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41. -- Util #1, Moving Platform, referred to "movplat".
  42.  
  43. local superpart = coroutine.create(function(movplat)
  44. local superpart = Instance.new("Part",game.Players.LocalPlayer.Character)
  45. superpart.Name = "SuperPart"
  46. x = game.Players.LocalPlayer.Character.Head.Position.X
  47. y = game.Players.LocalPlayer.Character.Head.Position.Y - 4.99
  48. z = game.Players.LocalPlayer.Character.Head.Position.Z
  49. superpart.Position = Vector3.new(x,y,z)
  50. superpart.Size = Vector3.new(5,1,5)
  51. superpart.Anchored = true
  52. local mesh = Instance.new("SpecialMesh",superpart)
  53. mesh.MeshId = "http://www.roblox.com/asset/?id=1095708"
  54. mesh.TextureId = "http://www.roblox.com/asset/?id=1095709"
  55. mesh.Scale = Vector3.new(10,5,10)
  56. function onKeyPress1(inputObject, gameProcessedEvent)
  57. if inputObject.KeyCode == Enum.KeyCode.E then
  58. local asdf1 = game.Players.LocalPlayer.Character.Head.Position.Y + 5
  59. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(x,asdf1,z))
  60. end
  61. end
  62. game:GetService("UserInputService").InputBegan:connect(onKeyPress1)
  63. function onKeyPress2(inputObject, gameProcessedEvent)
  64. if inputObject.KeyCode == Enum.KeyCode.Q then
  65. local asdf = game.Players.LocalPlayer.Character.Head.Position.Y - 5
  66. game.Players.LocalPlayer.Character:MoveTo(Vector3.new(x,asdf,z))
  67. end
  68. end
  69. game:GetService("UserInputService").InputBegan:connect(onKeyPress2)
  70. superpart.Position = Vector3.new(x,y,z)
  71. while true do
  72. x = game.Players.LocalPlayer.Character.Head.Position.X
  73. y = game.Players.LocalPlayer.Character.Head.Position.Y - 4.99
  74. z = game.Players.LocalPlayer.Character.Head.Position.Z
  75. superpart.Locked = true
  76. superpart.CFrame = CFrame.new(x,y,z)
  77. wait(0.001)
  78. end
  79. end)
  80.  
  81.  
  82.  
  83.  
  84. shieldtype = "Medium" -- Put in the size of the shield, vaild options are Small, Medium and Large(Be sure to put it in the qoutes!)
  85.  
  86.  
  87. local shield = coroutine.create(function()
  88. local ball = Instance.new("Part",char)
  89. local redrobin = Instance.new("Sound",ball)
  90. redrobin.SoundId = "rbxassetid://142937769"
  91. redrobin.Volume = 1
  92. ball.CanCollide = false
  93. ball.Anchored = true
  94. ball.Size = Vector3.new(10,10,10)
  95. ball.Shape = "Ball"
  96. ball.Transparency = 0.75
  97. ball.BrickColor = BrickColor.Blue()
  98. ball.TopSurface = Enum.SurfaceType.Smooth
  99. ball.BottomSurface = Enum.SurfaceType.Smooth
  100. char.Torso.BrickColor = BrickColor.Blue()
  101. char["Right Leg"].BrickColor = BrickColor.Blue()
  102. char["Left Leg"].BrickColor = BrickColor.Blue()
  103. char["Left Arm"].BrickColor = BrickColor.Blue()
  104. char["Right Arm"].BrickColor = BrickColor.Blue()
  105. char.Head.BrickColor = BrickColor.Blue()
  106. function onTouched(hit)
  107. if hit.Parent ~= char then
  108. if hit.Name ~= "Handle" then
  109. redrobin:Play()
  110. hit:remove()
  111. end
  112. end
  113. end
  114. ball.Touched:connect(onTouched)
  115.  
  116. while true do
  117. ball.CFrame = char.Torso.CFrame
  118. wait(0.001)
  119. end
  120. end)
  121.  
  122. coroutine.resume(shield)
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. if platifer == true then
  130. coroutine.resume(superpart)
  131. end
  132. print("Hi")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement