Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Tool0 = Instance.new("Tool")
- Part1 = Instance.new("Part")
- SpecialMesh2 = Instance.new("SpecialMesh")
- Sound3 = Instance.new("Sound")
- Sound4 = Instance.new("Sound")
- Script5 = Instance.new("Script")
- LocalScript6 = Instance.new("LocalScript")
- Camera7 = Instance.new("Camera")
- Tool0.Name = "RageTable"
- Tool0.Parent = owner.Character
- Tool0.TextureId = "http://www.roblox.com/asset/?id=111900204"
- Tool0.Grip = CFrame.new(0, 0, 0.300000012, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Tool0.GripPos = Vector3.new(0, 0, 0.300000012)
- Tool0.ToolTip = "Flip Out"
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.CanCollide = false
- Part1.Orientation = Vector3.new(0, -90, 0)
- Part1.Position = Vector3.new(174.379974, 0.335009992, 209.612976)
- Part1.Rotation = Vector3.new(174.240005, -89.9700012, 174.240005)
- Part1.Size = Vector3.new(1.20000005, 0.669994831, 0.669994712)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.FormFactor = Enum.FormFactor.Custom
- Part1.formFactor = Enum.FormFactor.Custom
- Part1.CanCollide = false
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "rbxassetid://430073345"
- SpecialMesh2.Scale = Vector3.new(0.5, 0.5, 0.5)
- SpecialMesh2.TextureId = "rbxassetid://430073362"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- Sound3.Parent = Part1
- Sound3.SoundId = "http://www.roblox.com/asset/?id=111896685"
- Sound3.Volume = 1
- Sound4.Name = "epicmusic"
- Sound4.Parent = Part1
- Sound4.Looped = true
- Sound4.Playing = true
- Sound4.SoundId = "rbxassetid://3159332644"
- Sound4.Volume = 10
- Script5.Parent = Tool0
- table.insert(cors,sandbox(Script5,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 = 'http://www.roblox.com/asset?id=111882478'
- 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 = "rbxassetid://430073345"
- tmesh.TextureId = "rbxassetid://430073362"
- 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*10)
- bAVel.Parent = ntable
- local bVel = Instance.new('BodyVelocity')
- bVel.maxForce = Vector3.new(math.huge,0,math.huge)
- bVel.velocity = (torso.CFrame.lookVector*25)
- 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)*2,math.random(),(math.random()-.5)*2).unit)*150
- end
- wait(3)
- if hitHumanoid then
- hitHumanoid.PlatformStand=false
- hitHumanoid.Jump = true
- end
- end)
- end)
- wait(3)
- 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))
- LocalScript6.Name = "AnimationPlayerScript"
- LocalScript6.Parent = Tool0
- table.insert(cors,sandbox(LocalScript6,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))
- Camera7.Name = "ThumbnailCamera"
- Camera7.Parent = Tool0
- Camera7.CFrame = CFrame.new(0.68505764, 33.5573082, -36.7884026, 0.658647597, 0.32750383, -0.67743969, -1.49011612e-08, 0.90031004, 0.43524906, 0.752451539, -0.286675751, 0.59298712)
- Camera7.CoordinateFrame = CFrame.new(0.68505764, 33.5573082, -36.7884026, 0.658647597, 0.32750383, -0.67743969, -1.49011612e-08, 0.90031004, 0.43524906, 0.752451539, -0.286675751, 0.59298712)
- Camera7.Focus = CFrame.new(1.49800003, 33.0349998, -37.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Camera7.focus = CFrame.new(1.49800003, 33.0349998, -37.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = script
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Add Comment
Please, Sign In to add comment