Download Project PHOENIX for free. Project PHOENIX is a massive multiplayer 3D-space shooter. It simulates a universe where you can do everithing you want.
Aug 4th, 2016
Never
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
- char = p.Character
- fling = true
- falling = false
- --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
- --shirt.Name = 'Shirt'
- --pants.Name = 'Pants'
- --char.Shirt.ShirtTemplate = 'http://www.roblox.com/asset/?id=451927425'
- --char.Pants.PantsTemplate = 'http://www.roblox.com/asset/?id=236412261'
- shoot = true
- punch = true
- neck = char.Torso.Neck
- wait()
- des = false
- torso = char.Torso
- char.Head.face.Texture = 'rbxassetid://332768867'
- local player = game.Players.LocalPlayer
- lig = Instance.new('PointLight',player.Character.Torso)
- m=player:GetMouse()
- bb = Instance.new('BillboardGui',player.Character.Head)
- function newRay(start,face,range,wat)
- local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
- hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
- end
- torso=game.Players.LocalPlayer.Character.Torso
- local WorldUp = Vector3.new(0,1,0)
- local Orig = Vec1
- Vec2 = Vec2+Vector3.new(0,1,0)
- local Up = (WorldUp-WorldUp:Dot(Forward)*Forward).unit
- Forward = -Forward
- return CFrame.new(Orig.X,Orig.Y,Orig.Z,Right.X,Up.X,Forward.X,Right.Y,Up.Y,Forward.Y,Right.Z,Up.Z,Forward.Z)
- local A = Vector3.new(0,0,0)
- local CF = look2(A,Vector3.new(A.X,B.Y,B.Z))
- CF = CFr*(CF*CFrame.Angles(0,0,math.pi))
- if B.Y > 0 then
- elseif B.Y < 0 then
- else
- end
- local _,_,_,_,X,_,_,Y,_,_,Z,_ = CF:components()
- local Forward = (Vec2-CFr.p).unit
- Forward = -Forward
- return CFrame.new(CFr.X,CFr.Y,CFr.Z,Right.X,Up.X,Forward.X,Right.Y,Up.Y,Forward.Y,Right.Z,Up.Z,Forward.Z)
- local joint = j
- if v[1]:FindFirstChild('Weld') then
- if i > 1 then joint = t[i-1][1].CFrame*CFrame.new(0,0,d*.5) end
- local dir = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).unit
- local dis = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).magnitude
- --if v[1].CFrame.y<=workspace.Base.CFrame.y then pos = joint.p+(dir*(d*.5)) end
- local rel1 = inv:inverse()*pos
- local cf = look(CFrame.new(rel1),rel2)--CFrame.new(pos,pos-(dir*dis))*CFrame.fromEulerAnglesXYZ(r.x,r.y,r.z)
- v[2] = inv*cf
- end
- end
- local p = Instance.new('Part',char)
- p.BrickColor = BrickColor.new('Institutional white')
- p.FormFactor='Custom'
- p.TopSurface = 'SmoothNoOutlines'
- p.RightSurface = 'SmoothNoOutlines'
- p.FrontSurface = 'SmoothNoOutlines'
- p:BreakJoints() -- sometimes the parts are stuck to something so you have to breakjoints them
- mesh.Scale = Vector3.new(1,1,4)
- w.Part0 = aa1[i-1] and aa1[i-1][1] or torso
- w.Name = 'Weld'
- aa1[i] = {p,p.CFrame}
- end
- game:service'RunService'.Stepped:connect(function()
- simulate(torso.CFrame*CFrame.new(0,0.9,.5),.6,torso,Vector3.new(),aa1)
- bb.AlwaysOnTop = true
- bb.StudsOffset = Vector3.new(0,1,0)
- gui.Text = '* '
- gui.Position=UDim2.new(0,57,0,-40)
- gui.BackgroundColor3=Color3.new(0,0,0)
- gui.TextScaled = true
- gui.TextYAlignment = 'Top'
- gui.BorderColor3 = Color3.new(0,0,0)
- gui1=Instance.new('TextButton',bb)
- gui1.Size = UDim2.new(0,190,0,51)
- gui1.TextColor3 = Color3.new(255,255,255)
- jump2 = true
- img = Instance.new('ImageLabel',bb)
- img.Position = UDim2.new(0,10,0,-41)
- img.BorderColor3 = Color3.new(0,0,0)
- soka = Instance.new('Sound',char)
- soka.SoundId = 'http://www.roblox.com/asset/?id = 447199232'
- boom = Instance.new('Sound',char)
- boom.SoundId = 'http://www.roblox.com/asset/?id = 447041606'
- boom2 = Instance.new('Sound',char)
- boom2.SoundId = 'http://www.roblox.com/asset/?id = 449025737'
- boom3 = Instance.new('Sound',char)
- boom3.SoundId = 'http://www.roblox.com/asset/?id = 450719019'
- tps = Instance.new('Sound',char)
- tps.SoundId = 'http://www.roblox.com/asset/?id = 449860746'
- asd = Instance.new('Sound',char)
- asd.SoundId = 'http://www.roblox.com/asset/?id = 447310433'
- asd1 = Instance.new('Sound',char)
- asd1.SoundId = 'http://www.roblox.com/asset/?id = 358280695'
- asd2 = Instance.new('Sound',char)
- asd2.SoundId = 'http://www.roblox.com/asset/?id = 386713054'
- asd2.Volume = 5
- asd3.SoundId = 'http://www.roblox.com/asset/?id = 378387996'
- asd4 = Instance.new('Sound',char)
- asd4.SoundId = 'http://www.roblox.com/asset/?id = 401258325'
- asd5 = Instance.new('Sound',char)
- asd5.SoundId = 'http://www.roblox.com/asset/?id = 362252261'
- gas = Instance.new('Sound',char)
- gas.SoundId = 'http://www.roblox.com/asset/?id = 345052019'
- asd6.SoundId = 'http://www.roblox.com/asset/?id = 401258325'
- function play(play)
- wait(0.05)
- end
- ------------
- local parts = {}
- local p = Instance.new('Part',char)
- p.Transparency = 0.5
- p.BottomSurface = 0
- p.BrickColor = BrickColor.new('Institutional white')
- p.CFrame = CFrame.new(origin+dir*i*size)*CFrame.Angles(math.random()*math.pi,math.random()*math.pi,math.random()*math.pi)
- parts[i] = {p,CFrame.Angles(math.random()*math.pi/5,math.random()*math.pi/5,math.random()*math.pi/5)}
- end
- while parts do
- if v[1].Parent char then
- else
- break
- end
- end
- end
- --[[-- listen for their chatting
- a = string.len(message)
- gui.Visible = true
- des = false
- print(a)
- gui.Text = '
- gui.Text =gui.Text..message:sub(i,i)
- end
- end)]]--
- if k 'g' then
- end
- if k 'r' then
- asd4:Play()
- end)
- if k 'q' then
- asd3:Play()
- end)
- if k 'z' then
- end)
- if k 'c' then
- end)
- if k 'b' then
- asd6:Play()
- end)
- m.KeyDown:connect(function(k)
- end
- m.KeyDown:connect(function(k)
- end
- m.KeyDown:connect(function(k)
- char.Head.face.Texture = 'rbxassetid://444037452'
- end)
- if k:byte() 51 then
- char.Head.face.Texture = 'rbxassetid://332768867'
- end)
- if k:byte() 48 then
- hum.WalkSpeed = 16
- end)
- if m 'Okay.' then
- end
- m.KeyDown:connect(function(k)
- if des true then
- gui.Text = '* '
- img.Visible = false
- end
- m.KeyDown:connect(function(key)
- if tp true then
- tps:Play()
- for i,v in pairs(char:GetChildren()) do if v:IsA('Part') then v.Transparency = 1
- wait(0.5)
- for i,v in pairs(char:GetChildren()) do if v:IsA('Part') then v.Transparency = 0
- char.HumanoidRootPart.CFrame = mouse.Hit * CFrame.new(0, 3, 0)
- game.Lighting.face.Parent = char.Head
- end
- end)
- if key 't' then
- punch2 = false
- ChatService:Chat(char.Head, 'Mind if I get Serious?')
- local ChatService = game:GetService('Chat')
- ChatService:Chat(char.Head ,'Killer Move: Serious Series...')
- local ChatService = game:GetService('Chat')
- neck.C0 = neckp
- org = char.Torso['Left Shoulder'].C0
- char.Torso['Left Shoulder'].C0 = char.Torso['Left Shoulder'].C0 * CFrame.new(-0.3,0,0) * CFrame.Angles(0,0,math.rad(-90))
- killbrick2 = Instance.new('Part',char)
- killbrick2.Transparency = 1
- killbrick2.CanCollide = true
- killbrick2.CanCollide = false
- killbrick2.Anchored = true
- killbrick2.CFrame = char.Torso.CFrame * CFrame.new(0,0,-1005)
- killbrick2.Touched:connect(function(h)
- if x then
- if x.Parent.Name game.Players.LocalPlayer.Name then
- else safe = false
- if x then
- h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * 900
- local bodyforc = Instance.new('BodyForce', h.Parent.Torso)
- bodyforc.force = Vector3.new(0, h.Parent.Torso:GetMass() * 196.1, 0)
- x.Parent:BreakJoints()
- safe = true
- end
- end)
- rng.Anchored = true
- rng.BrickColor = BrickColor.new('Institutional white')
- rng.FormFactor = 3
- rng.Size = Vector3.new(1, 1, 1)
- rng.TopSurface = 0
- rng.CFrame = char['Left Arm'].CFrame * CFrame.new(0,-2,0)
- rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- rngm.MeshId = 'http://www.roblox.com/asset/?id=3270017'
- local rng1 = Instance.new('Part', char)
- rng1.BrickColor = BrickColor.new('Institutional white')
- rng1.FormFactor = 3
- rng1.Size = Vector3.new(1, 1, 1)
- rng1.TopSurface = 0
- rng1.CFrame = char['Left Arm'].CFrame * CFrame.new(0,-2,0)
- rng1.CFrame = rng1.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- rngm1.MeshId = 'http://www.roblox.com/asset/?id=3270017'
- stream(p.p,((p*Vector3.new(-0.7,0,1))-p.p).unit,90,5) -- 20 is number of parts, 6 is distance between each one
- stream(p.p,((p*Vector3.new(0.7,0,1))-p.p).unit,90,5) -- same here
- local rng2 = Instance.new('Part', char)
- rng2.BrickColor = BrickColor.new('Institutional white')
- rng2.FormFactor = 3
- rng2.Size = Vector3.new(1, 1, 1)
- rng2.TopSurface = 0
- rng2.CFrame = char['Left Arm'].CFrame * CFrame.new(0,-2,0)
- rng2.CFrame = rng2.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- rngm2.MeshId = 'http://www.roblox.com/asset/?id=3270017'
- wait(0.1)
- boom3:Play()
- for i = 1, 35, 0.5 do
- rngm.Scale = Vector3.new(50 + i*2, 10 + i*2, 2.5+ i*4)
- rngm1.Scale = Vector3.new(50 + i*2, 1.4 + i*2, 1.4+ i*4)
- rngm2.Scale = Vector3.new(50 + i*2, 10 + i*2, 1.2+ i*4)
- wait()
- wait()
- rng1:Destroy()
- killbrick2:Remove()
- char.Torso['Left Shoulder'].C0 = org
- punch2 = true
- wait()
- wait(.1)
- end)
- m.KeyDown:connect(function(key)
- if punch true then
- org = char.Torso['Left Shoulder'].C0
- char.Torso['Left Shoulder'].C0 = char.Torso['Left Shoulder'].C0 * CFrame.new(-0.3,0,0) * CFrame.Angles(0,0,math.rad(-90))
- killbrick.Size = Vector3.new(5,1,5)
- killbrick:BreakJoints()
- local wel = Instance.new('Weld',killbrick)
- wel.Part1 = char['Left Arm']
- force = 90
- killbrick.Touched:connect(function(h)
- if x.Health >= 6000 then
- end
- fling = true
- local stop = h.Parent.Torso.Velocity
- if x.Parent.Name game.Players.LocalPlayer.Name then
- else safe = false
- if x then
- if fling true then
- if fling false then
- end
- h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * force
- local bodyforc = Instance.new('BodyForce', h.Parent.Torso)
- bodyforc.force = Vector3.new(0, h.Parent.Torso:GetMass() * 196.1, 0)
- x:TakeDamage(5000)
- safe = true
- h.Parent.Torso.Velocity = stop
- end
- end)
- rng.Anchored = true
- rng.BrickColor = BrickColor.new('Institutional white')
- rng.FormFactor = 3
- rng.Size = Vector3.new(1, 1, 1)
- rng.TopSurface = 0
- rng.CFrame = char['Left Arm'].CFrame * CFrame.new(0,-2,0)
- rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- rngm.MeshId = 'http://www.roblox.com/asset/?id=3270017'
- wait(0.1)
- boom2:Play()
- for i = 1, 10, .4 do
- end
- rng:Destroy()
- wait(0.5)
- wait(1)
- punch = true
- end)()
- end
- end
- m.KeyDown:connect(function(key)
- if jump true then
- local rng = Instance.new('Part', char)
- rng.BrickColor = BrickColor.new('Institutional white')
- rng.FormFactor = 3
- rng.Size = Vector3.new(1, 1, 1)
- rng.TopSurface = 0
- rng.Position = torso.Position - Vector3.new(0,2,0)
- rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- rngm.MeshId = 'http://www.roblox.com/asset/?id=3270017'
- wait(0.1)
- BV.maxForce = Vector3.new(0,20000,0)
- BV.velocity = Vector3.new(0,100,0)
- coroutine.wrap(function()
- rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1)
- wait()
- wait()
- wait(1)
- for i,v in pairs(torso:GetChildren()) do if v:IsA('BodyVelocity') then
- v:Destroy() jumping2 = true falling = true wait(0.3) jumping2 = false falling = false wait(1.7) jump = true hum.WalkSpeed = 16 falling = false
- wait()
- wait(.1)
- end)
- if key 'n' then
- if falling true then
- if jumping2 true then
- jump = false
- BV.maxForce = Vector3.new(0,-20000,0)
- BV.velocity = Vector3.new(0,-70,0)
- local rng = Instance.new('Part', char)
- rng.BrickColor = BrickColor.new('Institutional white')
- rng.FormFactor = 3
- rng.Size = Vector3.new(1, 1, 1)
- rng.TopSurface = 0
- rng.Position = torso.Position - Vector3.new(0,2,0)
- rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
- rngm.MeshId = 'http://www.roblox.com/asset/?id=3270017'
- boom:Play()
- for i = 1, 60, 2 do
- rng.Transparency = i/60
- end
- rng:Destroy()
- for i,v in pairs(torso:GetChildren()) do if v:IsA('BodyVelocity') then
- v:Destroy() wait(2) jumping2 = true hum.WalkSpeed = 16
- wait()
- wait(.1)
- end
- end)
- if k 'f' then
- asd2:Stop()
- asd6:Stop()
- end
RAW Paste Data