Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local runDummyScript = function(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return scri
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- mas.Name = "CompiledModel"
- o1 = Instance.new("Tool")
- o2 = Instance.new("Part")
- o3 = Instance.new("SpecialMesh")
- o4 = Instance.new("Sound")
- o6 = Instance.new("Script")
- o7 = Instance.new("LocalScript")
- o1.Name = "RageTable"
- o1.Parent = mas
- o1.TextureId = "http://www.roblox.com/asset/?id=111900204"
- o1.GripPos = Vector3.new(0, 0, 0.300000012)
- o1.ToolTip = "Flip Out"
- o2.Name = "Handle"
- o2.Parent = o1
- o2.Material = Enum.Material.Wood
- o2.BrickColor = BrickColor.new("Brown")
- o2.Position = Vector3.new(-6.50199986, 0.335000992, -11.5)
- o2.Rotation = Vector3.new(174.238449, -89.9720306, 174.238449)
- o2.FormFactor = Enum.FormFactor.Custom
- o2.Size = Vector3.new(1.20000005, 0.669994831, 0.669994712)
- o2.CFrame = CFrame.new(-6.50199986, 0.335000992, -11.5, -8.92122927e-008, -9.00136854e-009, -0.999999881, 0, 0.999999881, -9.00136232e-009, 0.999999881, 0, -8.92122927e-008)
- o2.BottomSurface = Enum.SurfaceType.Smooth
- o2.TopSurface = Enum.SurfaceType.Smooth
- o2.Color = Color3.new(0.486275, 0.360784, 0.27451)
- o2.Position = Vector3.new(-6.50199986, 0.335000992, -11.5)
- o3.Parent = o2
- o3.MeshId = "http://www.roblox.com/asset/?id=111868131"
- o3.Scale = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- o3.TextureId = "rbxassetid://111867655"
- o3.MeshType = Enum.MeshType.FileMesh
- o4.Parent = o2
- o4.SoundId = "rbxassetid://218056315"
- o4.Volume = 2
- o6.Parent = o1
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- function FindAttachedHumanoid(part)
- local tpart = part
- while tpart.Parent do
- if tpart.Parent:FindFirstChild('Humanoid') then return tpart.Parent.Humanoid end
- tpart = tpart.Parent
- end
- return nil
- end
- function MakeValue(class,name,value,parent)
- local temp = Instance.new(class)
- temp.Name = name
- temp.Value = value
- temp.Parent = parent
- return temp
- end
- local Tool = script.Parent
- local Handle = Tool:WaitForChild('Handle')
- local YellSound = Handle:WaitForChild('Sound')
- local AniScript = Tool:WaitForChild('AnimationPlayerScript')
- --http://www.roblox.com/Asset?ID=111898513'--http://www.roblox.com/Asset?ID=111880514'
- local ThrowAnimation = 'http://www.roblox.com/Asset?ID=111898867'
- local ThrowFace = 'rbxassetid://168024772'
- local ThrowTable= Instance.new('Part')
- do
- --ThrowTable.Shape = 'Ball'
- ThrowTable.FormFactor='Custom'
- ThrowTable.Size = Vector3.new(4.8, 2.43, 3.63)
- ThrowTable.CanCollide = true
- local tmesh = Instance.new('SpecialMesh')
- tmesh.MeshId = 'http://www.roblox.com/asset/?id=111868131'
- tmesh.TextureId = 'http://www.roblox.com/asset/?id=111867655'
- tmesh.Parent = ThrowTable
- end
- local LookGyro= Instance.new('BodyGyro')
- LookGyro.maxTorque = Vector3.new(0,math.huge,0)
- local ActivateLock=false
- Tool.Activated:connect(function()
- if ActivateLock then return end
- ActivateLock = true
- local character = Tool.Parent
- local humanoid = character:WaitForChild('Humanoid')
- local torso = character:WaitForChild('Torso')
- local head = character:WaitForChild('Head')
- local face = head:FindFirstChild('face')
- local oldFace =''
- if face then oldFace = face.Texture end
- humanoid.WalkSpeed = 0
- LookGyro.cframe = torso.CFrame - torso.CFrame.p
- LookGyro.Parent = torso
- local ntable = ThrowTable:Clone()
- ntable.CFrame = torso.CFrame+(torso.CFrame.lookVector*3)
- ntable.Parent = Workspace
- MakeValue('StringValue','aniId',ThrowAnimation,AniScript)
- wait(.5)
- YellSound:play()
- wait(.5)
- if face then
- face.Texture=ThrowFace
- end
- local bAVel = Instance.new('BodyAngularVelocity')
- bAVel.maxTorque = Vector3.new(math.huge,math.huge,math.huge)
- bAVel.angularvelocity = ((torso.CFrame*CFrame.Angles(0,math.pi/2,0)).lookVector*20)
- bAVel.Parent = ntable
- local bVel = Instance.new('BodyVelocity')
- bVel.maxForce = Vector3.new(math.huge,0,math.huge)
- bVel.velocity = (torso.CFrame.lookVector*35)
- bVel.Parent = ntable
- ntable.Touched:connect(function(part)
- --print('GotTouched:' .. part.Name)
- Spawn(function()
- if part.Name == 'Terrain' then return end
- if part.Anchored then return end
- local hitHumanoid = FindAttachedHumanoid(part)
- if hitHumanoid then
- --print('HumanoidParent:'..hitHumanoid.Parent.Name)
- if hitHumanoid==humanoid then return end
- hitHumanoid.PlatformStand =true
- end
- if part.Size.x*part.Size.y*part.Size.z<=5*9*5 then
- part.Velocity = (Vector3.new((math.random()-.5)*5,math.random(),(math.random()-.5)*5).unit)*25
- end
- wait(3)
- print('got past wait')
- if hitHumanoid then
- print('unplatformstanding')
- hitHumanoid.PlatformStand=false
- hitHumanoid.Jump = true
- end
- end)
- end)
- wait(6)
- LookGyro.Parent = nil
- humanoid.WalkSpeed = 16
- if face then
- face.Texture=oldFace
- end
- ntable.CanCollide = false
- game.Debris:AddItem(ntable,5)
- ActivateLock = false
- end)
- end,o6)
- end))
- o7.Name = "AnimationPlayerScript"
- o7.Parent = o1
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- function FindAttachedHumanoid(part)
- local tpart = part
- while tpart.Parent do
- if tpart.Parent:FindFirstChild('Humanoid') then return tpart.Parent.Humanoid end
- tpart = tpart.Parent
- end
- return nil
- end
- script.ChildAdded:connect(function(nchild)
- local humanoid = FindAttachedHumanoid(script)
- local ani = Instance.new('Animation')
- ani.AnimationId= nchild.Value
- local aniTrack=humanoid:LoadAnimation(ani)
- aniTrack:Play()
- end)
- end,o7)
- end))
- mas.Parent = workspace
- mas:MakeJoints()
- local mas1 = mas:GetChildren()
- for i=1,#mas1 do
- mas1[i].Parent = game:GetService("Players").LocalPlayer.Backpack
- ypcall(function() mas1[i]:MakeJoints() end)
- end
- mas:Destroy()
- for i=1,#cors do
- coroutine.resume(cors[i])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement