Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(1)
- plr=game.Players.LocalPlayer
- char=plr.Character
- MyHumanoid=char.Humanoid
- LastSpace=0
- LastTeleport=0
- t=char.Torso
- childList={}
- m=plr:GetMouse()
- local Animations = {}
- local function WaitForChild(parent, childName)
- while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end
- return parent[childName]
- end
- Animations['EquipAnim'] = MyHumanoid:LoadAnimation(WaitForChild(script, 'EquipAnim5'))
- Animations['Roar'] = MyHumanoid:LoadAnimation(WaitForChild(script, 'Roar'))
- function f (p)
- p.RocketPropulsion:Fire()
- end
- m.KeyDown:connect(function(key)
- if key == 'g' then
- t=m.Target
- if t.Parent.ClassName=='Tool' and (plr.Character['Right Arm'].Position - t.Position).magnitude<=50 then
- Animations['EquipAnim']:Play(.1,.8,2)
- rp=Instance.new('RocketPropulsion')
- rp.Target=plr.Character['Right Arm']
- print(plr.Character.Name)
- rp.Parent=m.Target
- f(rp.Parent)
- t.Parent.Equipped:connect(function()
- rp:remove()
- end)
- else return
- end
- t=plr.Character.Torso
- --print (nkey)
- elseif key == string.char(32) then
- if tick()-LastSpace < 1 and tick()-LastTeleport >3 then
- fury()
- LastTeleport = tick()
- Animations['Roar']:Play(.1,1,3)
- t.Velocity = t.Velocity + Vector3.new(0,120,0)
- wait(3)
- elseif tick()-LastTeleport >3 then
- LastSpace = tick()
- end
- elseif key=='f' and d==nil then
- d=true
- fury()
- Animations['Roar']:Play()
- freeze()
- wait(10)
- d=nil
- elseif key == 'q' then
- if d2==nil then
- d2=true
- Animations['EquipAnim']:Play(.1,.8,2)
- Taunt()
- wait(5)
- d2=nil
- end
- elseif key == 'e' then
- if debounce2==nil then
- debounce2=true
- Animations['EquipAnim']:Play(.1,.8,2)
- rTaunt()
- wait(5)
- debounce2=nil
- end
- end
- end)
- function Taunt()
- --gather all of the humanoids in a 30stud radius
- local torsos = {}
- for _, p in pairs(game.Players:GetChildren()) do
- if p ~= plr then
- if p.Character and p.Character:FindFirstChild('Torso') then
- torsos[#torsos+1] = p.Character.Torso
- end
- end
- end
- --now pull them in towards us
- local mpos = char.Torso.Position
- for _, torso in pairs(torsos) do
- if (mpos-torso.Position).magnitude < 40 then
- local dir = (mpos-torso.Position).unit
- ------------ stolen from dagger of time to make a character "fly" in some direction
- local force = Instance.new("BodyVelocity")
- force.velocity = Vector3.new(0,1,0)
- force.Parent = torso
- torso.Velocity = dir*250
- game.Debris:AddItem(force, 0.5)
- ------------
- end
- end
- end
- function rTaunt()
- --gather all of the humanoids in a 30stud radius
- local torsos = {}
- for _, p in pairs(game.Players:GetChildren()) do
- if p ~= game.Players:GetPlayerFromCharacter(char) then
- if p.Character and p.Character:FindFirstChild('Torso') then
- torsos[#torsos+1] = p.Character.Torso
- end
- end
- end
- --now pull them in towards us
- local mpos = char.Torso.Position
- for _, torso in pairs(torsos) do
- if (mpos-torso.Position).magnitude < 40 then
- local dir = (mpos-torso.Position).unit
- ------------ stolen from dagger of time to make a character "fly" in some direction
- local force = Instance.new("BodyVelocity")
- force.velocity = Vector3.new(0,1,0)
- force.Parent = torso
- torso.Velocity = -dir*250
- game.Debris:AddItem(force, 0.5)
- ------------
- end
- end
- end
- function freeze()
- checkObject(workspace)
- for i, v in pairs(childList) do
- if (v.Position-char.Torso.Position).magnitude<=50 then
- v.Anchored=true
- wait(7)
- v.Anchored=false
- else return
- end
- end
- end
- function checkObject(obj) -- This is basically a function that finds all unanchored parts and adds them to childList.
- if (obj.className == "Part") and not (obj:IsDescendantOf(char)) then
- if (obj.Anchored == false) then
- table.insert(childList, 1, obj)
- end
- elseif (obj.className == "Model") or (obj.className == "Hat") or (obj.className == "Tool") or (obj == workspace) then
- local child = obj:GetChildren()
- for x = 1, #child do
- checkObject(child[x])
- end
- obj.ChildAdded:connect(checkObject)
- end
- end
- function fury()
- ch=char:GetChildren()
- for i, v in pairs(ch) do
- if v.ClassName=='Part' then
- fp=script:WaitForChild('EffectFire'):Clone()
- fp.Enabled=true
- fp.Parent=v
- fp.Script.Disabled=false
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement