Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- FlameUtils version 1.0.0
- -- Anyone may modify or change any line within this script/program as long as credits to the orignal creator are left within
- -- If you'd like to run this script in ScriptBuilder, please do: hl/pastebin.com/raw/(link)
- -- More tbd
- --
- -- Basic Identifiers
- -- This is used in all utilities, so, we'll define them now.
- -- You probably shouldn't need to modify any of these unless asked to do so.
- local plr = game.Players.LocalPlayer -- Defining the local player, this is YOU when you run the script!
- local char = plr.Character -- Getting your player on Workspace.
- local version = "0.0.0 Pre-Alpha"
- local users = "" -- Put your name in the ""'s
- if users == "" then
- verinfo = ("FlameUtils, made by TheFlamingBlaster. This build's version is "..version )
- modified = false
- else
- verinfo = ("FlameUtils, made by TheFlamingBlaster with help of ".. users ..". This build's version is "..version )
- modifed = true
- end
- print("[FlameUtils Version Information]"..verinfo)
- platifer = true
- -- Util #1, Moving Platform, referred to "movplat".
- local superpart = coroutine.create(function(movplat)
- local superpart = Instance.new("Part",game.Players.LocalPlayer.Character)
- superpart.Name = "SuperPart"
- x = game.Players.LocalPlayer.Character.Head.Position.X
- y = game.Players.LocalPlayer.Character.Head.Position.Y - 4.99
- z = game.Players.LocalPlayer.Character.Head.Position.Z
- superpart.Position = Vector3.new(x,y,z)
- superpart.Size = Vector3.new(5,1,5)
- superpart.Anchored = true
- local mesh = Instance.new("SpecialMesh",superpart)
- mesh.MeshId = "http://www.roblox.com/asset/?id=1095708"
- mesh.TextureId = "http://www.roblox.com/asset/?id=1095709"
- mesh.Scale = Vector3.new(10,5,10)
- function onKeyPress1(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.E then
- local asdf1 = game.Players.LocalPlayer.Character.Head.Position.Y + 5
- game.Players.LocalPlayer.Character:MoveTo(Vector3.new(x,asdf1,z))
- end
- end
- game:GetService("UserInputService").InputBegan:connect(onKeyPress1)
- function onKeyPress2(inputObject, gameProcessedEvent)
- if inputObject.KeyCode == Enum.KeyCode.Q then
- local asdf = game.Players.LocalPlayer.Character.Head.Position.Y - 5
- game.Players.LocalPlayer.Character:MoveTo(Vector3.new(x,asdf,z))
- end
- end
- game:GetService("UserInputService").InputBegan:connect(onKeyPress2)
- superpart.Position = Vector3.new(x,y,z)
- while true do
- x = game.Players.LocalPlayer.Character.Head.Position.X
- y = game.Players.LocalPlayer.Character.Head.Position.Y - 4.99
- z = game.Players.LocalPlayer.Character.Head.Position.Z
- superpart.Locked = true
- superpart.CFrame = CFrame.new(x,y,z)
- wait(0.001)
- end
- end)
- shieldtype = "Medium" -- Put in the size of the shield, vaild options are Small, Medium and Large(Be sure to put it in the qoutes!)
- local shield = coroutine.create(function()
- local ball = Instance.new("Part",char)
- local redrobin = Instance.new("Sound",ball)
- redrobin.SoundId = "rbxassetid://142937769"
- redrobin.Volume = 1
- ball.CanCollide = false
- ball.Anchored = true
- ball.Size = Vector3.new(10,10,10)
- ball.Shape = "Ball"
- ball.Transparency = 0.75
- ball.BrickColor = BrickColor.Blue()
- ball.TopSurface = Enum.SurfaceType.Smooth
- ball.BottomSurface = Enum.SurfaceType.Smooth
- char.Torso.BrickColor = BrickColor.Blue()
- char["Right Leg"].BrickColor = BrickColor.Blue()
- char["Left Leg"].BrickColor = BrickColor.Blue()
- char["Left Arm"].BrickColor = BrickColor.Blue()
- char["Right Arm"].BrickColor = BrickColor.Blue()
- char.Head.BrickColor = BrickColor.Blue()
- function onTouched(hit)
- if hit.Parent ~= char then
- if hit.Name ~= "Handle" then
- redrobin:Play()
- hit:remove()
- end
- end
- end
- ball.Touched:connect(onTouched)
- while true do
- ball.CFrame = char.Torso.CFrame
- wait(0.001)
- end
- end)
- coroutine.resume(shield)
- if platifer == true then
- coroutine.resume(superpart)
- end
- print("Hi")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement