Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- p = game.Players.LocalPlayer
- char = p.Character
- des = false
- fling = true
- dot = false
- falling = false
- jump = true
- --char.Shirt:Remove()
- --for i,v in pairs(char:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
- for i,v in pairs(char:GetChildren()) do if v:IsA("Hat") then v.Handle:Remove() end end
- wait()--shirt = Instance.new("Shirt", char)
- --shirt.Name = "Shirt"
- --pants = Instance.new("Pants", char)
- --pants.Name = "Pants"
- --char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=22287244"
- --char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=22287352"
- tp = true
- shoot = true
- hum = char.Humanoid
- punch = true
- neckp = char.Torso.Neck.C0
- neck = char.Torso.Neck
- hum.MaxHealth = 6000
- wait()
- hum.Health =hum.MaxHealth
- des = false
- root=char.HumanoidRootPart
- torso = char.Torso
- char.Head.face.Texture = "rbxassetid://986775808"
- local ChatService = game:GetService("Chat")
- local player = game.Players.LocalPlayer
- lig = Instance.new("PointLight",player.Character.Torso)
- lig.Color=Color3.new(255,0,0)
- m=player:GetMouse()
- bb = Instance.new("BillboardGui",player.Character.Head)
- bb.Enabled = true
- function newRay(start,face,range,wat)
- local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
- hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
- return rey,hit,pos
- end
- local part = game.Players.LocalPlayer.Character
- local basetemplate = "http://www.roblox.com/asset/?id="
- local shirt = 1162887253
- local pants = 1162887782
- local h = part:findFirstChild("Shirt")
- if h ~= nil then
- h.ShirtTemplate = basetemplate..shirt
- else
- local i = Instance.new("Shirt")
- i.Name = "Shirt"
- i.ShirtTemplate = basetemplate..shirt
- i.Parent = part
- end
- local p = part:findFirstChild("Pants")
- if p ~= nil then
- p.PantsTemplate = basetemplate..pants
- else
- local np = Instance.new("Pants")
- np.PantsTemplate = basetemplate..pants
- np.Name = "Pants"
- np.Parent = part
- end
- ------------------------
- jun = game.Players.LocalPlayer
- Stuff = false
- function Chat(msg)
- game:service("Chat"):Chat(jun.Character.Head,msg,Enum.ChatColor.Red)
- end
- function ssj()
- if Stuff == false then
- Stuff = true
- jun.Character.Humanoid.WalkSpeed = 10
- Effect1 = Instance.new("Part",jun.Character)
- Effect1.Anchored = true
- Effect1.CanCollide = false
- Effect1.Shape = "Ball"
- Effect1.CFrame = jun.Character.Torso.CFrame
- Effect1.BrickColor = BrickColor.new("Toothpaste")
- Effect1.Size = Vector3.new(20,18,18)
- Effect1.TopSurface = "Smooth"
- Effect1.BottomSurface = "Smooth"
- Effect1.Material = "Neon"
- for i = 1, 5 do
- wait(.5)
- Effect1.Transparency = Effect1.Transparency + .2
- end
- Effect1:Destroy()
- jun.Character.Humanoid.WalkSpeed = 200
- p = Instance.new("Part")
- p.Parent = jun.Character
- p.Anchored = true
- p.CanCollide = false
- p.Transparency = 0.15
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(0, 0, 0)
- p.TopSurface = "Smooth"
- p.BottomSurface = "Smooth"
- p.Name = "Sharingan"
- p.Shape = "Ball"
- p.CFrame = jun.Character.Torso.CFrame
- p.BrickColor = BrickColor.new("Institutional white")
- for i = 1 , 10 do
- wait(0.07)
- p.Size = p.Size + Vector3.new(4, 4, 4)
- p.Transparency = p.Transparency + 0.1
- p.CFrame = jun.Character.Torso.CFrame
- end
- p:Destroy()
- Effect = Instance.new("Part")
- Effect.Parent = jun.Character
- Effect.Anchored = true
- Effect.CanCollide = false
- Effect.Size = Vector3.new(1, 1, 1)
- Effect.formFactor = "Symmetric"
- Effect.Transparency = 0.5
- Effect.BrickColor = BrickColor.new("Toothpaste")
- Effect.TopSurface = "Smooth"
- Effect.BottomSurface = "Smooth"
- EffectMesh = Instance.new("SpecialMesh")
- EffectMesh.MeshId = "rbxassetid://51684149"
- EffectMesh.TextureId = "http://www.roblox.com/asset/?id=157005821"
- EffectMesh.Parent = Effect
- EffectMesh.Scale = Vector3.new(20, 20, 20)
- for _,c in pairs (jun.Character:GetChildren()) do
- if c.className == "Hat" then
- c.Handle.Transparency = 1
- end
- end
- Hair22 = Instance.new("Part")
- Hair22.Parent = jun.Character
- Hair22.Name = "Hair"
- Hair22.formFactor = "Symmetric"
- Hair22.Size = Vector3.new(1, 1, 1)
- Hair22.CFrame = jun.Character.Head.CFrame
- Hair22:BreakJoints()
- Hair22.CanCollide = false
- Hair22.TopSurface = "Smooth"
- Hair22.BottomSurface = "Smooth"
- Hair22.BrickColor = BrickColor.new("Really black")
- Hair22.Transparency = 1
- Weld = Instance.new("Weld")
- Weld.Part0 = jun.Character.Head
- Weld.Part1 = Hair22
- Weld.Parent = jun.Character.Head
- Weld.C0 = CFrame.new(0, 0.26, 0.06)*CFrame.fromEulerAnglesXYZ(0, 0, 0)
- Mesh = Instance.new("SpecialMesh")
- Mesh.Parent = Hair22
- Mesh.MeshType = "Sphere"
- Mesh.Scale = Vector3.new(1.3, 1.3, 1.3)
- Hair4 = Instance.new("Part")
- Hair4.Parent = jun.Character
- Hair4.Name = "Hair"
- Hair4.CanCollide = false
- Hair4.Locked = true
- Hair4.TopSurface = "Smooth"
- Hair4.BottomSurface = "Smooth"
- Hair4.formFactor = "Symmetric"
- Hair4.BrickColor = BrickColor.new("Really black")
- Hair4.CFrame = jun.Character.Torso.CFrame
- Hair4.Size = Vector3.new(1, 1, 1)
- Hair4.Transparency = 1
- Weld = Instance.new("Weld")
- Weld.Parent = jun.Character.Head
- Weld.Part0 = jun.Character.Head
- Weld.Part1 = Hair4
- Weld.C0 = CFrame.new(0, 1, 0)
- Mesh = Instance.new("SpecialMesh")
- Mesh.Parent = Hair4
- Mesh.Scale = Vector3.new(1.15, 1.8, 1.26)
- Mesh.MeshType = "FileMesh"
- Mesh.MeshId = "http://www.roblox.com/asset/?id=12212520"
- Mesh.TextureId = "http://www.roblox.com/asset/?id=4547557"
- jun.Character.Torso.CFrame = jun.Character.Torso.CFrame * CFrame.new(0, 0.1, 0)
- for i = 1 , 20 do
- Effect.CFrame = CFrame.new(jun.Character.Torso.Position)
- EffectMesh.Scale = EffectMesh.Scale + Vector3.new(2, 0, 2)
- Effect.Transparency = Effect.Transparency + 0.025
- wait(0.06)
- end
- Effect:Remove()
- for i = 1, 6 do
- Hair22.Transparency = Hair22.Transparency - .2
- Hair4.Transparency = Hair4.Transparency - .2
- wait(.5)
- end
- if jun.Character.Torso:findFirstChild("PwnParticleEmitter") == nil then
- pie = Instance.new("ParticleEmitter")
- pie.Name = "PwnParticleEmitter"
- pie.Parent = jun.Character.Torso
- pie.Texture = "rbxassetid://833874434"
- pie.Color = 0,170,255
- pie.Rate = 50
- pie.Speed = 0.5
- pie.Lifetime = 1
- pie.Size = 1
- pie.LightInfluence = 1
- pie.LightEmission = 0.3
- end
- jun.Character.Humanoid.MaxHealth = jun.Character.Humanoid.MaxHealth*6000.150
- wait()
- jun.Character.Humanoid.Health = jun.Character.Humanoid.MaxHealth
- end
- end
- function nossj()
- if Stuff == true then
- Stuff = false
- if jun.Character.Torso:findFirstChild("PwnParticleEmitter") ~= nil then
- jun.Character.Torso:findFirstChild("PwnParticleEmitter"):Remove()
- end
- p = Instance.new("Part")
- p.Parent = jun.Character
- p.Anchored = true
- p.CanCollide = false
- p.Transparency = 0.1
- p.formFactor = "Symmetric"
- p.Size = Vector3.new(22, 22, 22)
- p.TopSurface = "Smooth"
- p.BottomSurface = "Smooth"
- p.Name = "Sharingan"
- p.Shape = "Ball"
- p.CFrame = jun.Character.Torso.CFrame
- p.BrickColor = BrickColor.new("White")
- for i = 1 , 10 do
- wait(0.05)
- p.Size = p.Size + Vector3.new(-4, -4, -4)
- p.Transparency = p.Transparency + 0.1
- p.CFrame = jun.Character.Torso.CFrame
- end
- p:Remove()
- for u, c in pairs (jun.Character:GetChildren()) do
- if c.className == "Hat" then
- c.Handle.Transparency = 0
- end
- if c.Name == "Hair" then
- c:Remove()
- end
- end
- jun.Character.Humanoid.Health = jun.Character.Humanoid.Health/1.15
- wait(.3)
- jun.Character.Humanoid.MaxHealth = jun.Character.Humanoid.MaxHealth/1.15
- end
- end
- jun.Chatted:connect(function(Msg)
- msg = Msg:lower()
- if string.sub(msg, 1, 13) == "ui" then
- wait(0.1)
- ssj()
- end
- if string.sub(msg, 1, 3) == "off" then
- wait(0.1)
- nossj()
- end
- end)
- function waitForChild(parent, childName)
- while true do
- local child = parent:findFirstChild(childName)
- if child then
- return child
- end
- parent.ChildAdded:wait()
- end
- end
- -- declarations
- local Figure = script.Parent
- local Head = waitForChild(Figure, "Head")
- local Humanoid = waitForChild(Figure, "Humanoid")
- -- regeneration
- while true do
- local s = wait(4)
- local health = Humanoid.Health
- if health > 0 and health < Humanoid.MaxHealth then
- health = health + 0.08 * s * Humanoid.MaxHealth
- if health * .95 < Humanoid.MaxHealth then
- Humanoid.Health = health
- else
- Humanoid.Health = Humanoid.MaxHealth
- end
- end
- end
- local HealthGUI_prototype = script:FindFirstChild("HealthGUI")
- local lastHealth = 100
- local lastHealth2 = 100
- local maxWidth = 0.96
- local humanoid = script.Parent.Humanoid
- if (humanoid == nil) then
- print("ERROR: no humanoid found in 'HealthScript v3.1'")
- end
- function CreateGUI()
- local p = game.Players:GetPlayerFromCharacter(humanoid.Parent)
- HealthGUI_prototype.Parent = p.PlayerGui
- end
- function UpdateGUI(health)
- tray = HealthGUI_prototype.tray
- local width = (health / humanoid.MaxHealth) * maxWidth
- local height = 0.83
- local lastX = tray.bar.Position.X.Scale
- local x = 0.019 + (maxWidth - width)
- local y = 0.1
- tray.bar.Position = UDim2.new(x,0,y, 0)
- tray.bar.Size = UDim2.new(width, 0, height, 0)
- -- If more than 1/4 health, bar = green. Else, bar = red.
- if( (health / humanoid.MaxHealth) > 0.25 ) then
- tray.barRed.Size = UDim2.new(0, 0, 0, 0)
- else
- tray.barRed.Position = tray.bar.Position
- tray.barRed.Size = tray.bar.Size
- tray.bar.Size = UDim2.new(0, 0, 0, 0)
- end
- if ( (lastHealth - health) > (humanoid.MaxHealth / 10) ) then
- lastHealth = health
- if humanoid.Health ~= humanoid.MaxHealth then
- delay(0,function()
- AnimateHurtOverlay()
- end)
- delay(0,function()
- AnimateBars(x, y, lastX, height)
- end)
- end
- else
- lastHealth = health
- end
- end
- function HealthChanged(health)
- UpdateGUI(health)
- if ( (lastHealth2 - health) > (humanoid.MaxHealth / 10) ) then
- lastHealth2 = health
- else
- lastHealth2 = health
- end
- end
- function AnimateBars(x, y, lastX, height)
- tray = HealthGUI_prototype.tray
- local width = math.abs(x - lastX)
- if( x > lastX ) then
- x = lastX
- end
- tray.bar2.Position = UDim2.new(x,0, y, 0)
- tray.bar2.Size = UDim2.new(width, 0, height, 0)
- tray.bar2.BackgroundTransparency = 0
- local GBchannels = 1
- local j = 0.2
- local i_total = 30
- for i=1,i_total do
- -- Increment Values
- if (GBchannels < 0.2) then
- j = -j
- end
- GBchannels = GBchannels + j
- if (i > (i_total - 10)) then
- tray.bar2.BackgroundTransparency = tray.bar2.BackgroundTransparency + 0.1
- end
- tray.bar2.BackgroundColor3 = Color3.new(1, GBchannels, GBchannels)
- wait(0.02)
- end
- end
- function AnimateHurtOverlay()
- -- Start:
- -- overlay.Position = UDim2.new(0, 0, 0, -22)
- -- overlay.Size = UDim2.new(1, 0, 1.15, 30)
- -- Finish:
- -- overlay.Position = UDim2.new(-2, 0, -2, -22)
- -- overlay.Size = UDim2.new(4.5, 0, 4.65, 30)
- overlay = HealthGUI_prototype.hurtOverlay
- overlay.Position = UDim2.new(-2, 0, -2, -22)
- overlay.Size = UDim2.new(4.5, 0, 4.65, 30)
- -- Animate In, fast
- local i_total = 2
- local wiggle_total = 0
- local wiggle_i = 0.02
- for i=1,i_total do
- overlay.Position = UDim2.new( (-2 + (2 * (i/i_total)) + wiggle_total/2), 0, (-2 + (2 * (i/i_total)) + wiggle_total/2), -22 )
- overlay.Size = UDim2.new( (4.5 - (3.5 * (i/i_total)) + wiggle_total), 0, (4.65 - (3.5 * (i/i_total)) + wiggle_total), 30 )
- wait(0.01)
- end
- i_total = 30
- wait(0.03)
- -- Animate Out, slow
- for i=1,i_total do
- if( math.abs(wiggle_total) > (wiggle_i * 3) ) then
- wiggle_i = -wiggle_i
- end
- wiggle_total = wiggle_total + wiggle_i
- overlay.Position = UDim2.new( (0 - (2 * (i/i_total)) + wiggle_total/2), 0, (0 - (2 * (i/i_total)) + wiggle_total/2), -22 )
- overlay.Size = UDim2.new( (1 + (3.5 * (i/i_total)) + wiggle_total), 0, (1.15 + (3.5 * (i/i_total)) + wiggle_total), 30 )
- wait(0.01)
- end
- -- Hide after we're done
- overlay.Position = UDim2.new(10, 0, 0, 0)
- end
- CreateGUI()
- humanoid.HealthChanged:connect(HealthChanged)
- humanoid.Died:connect(function() HealthChanged(0) end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement