Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(.5)
- local blockindex = {['Quartz Pillar'] = {Front = 'http://www.roblox.com/asset/?id=105562583',Back = 'http://www.roblox.com/asset/?id=105562583',Left = 'http://www.roblox.com/asset/?id=105562583',Right = 'http://www.roblox.com/asset/?id=105562583',Top = 'http://www.roblox.com/asset/?id=105562555',Bottom = 'http://www.roblox.com/asset/?id=105562555',Transparency = 0},['Sand'] = {Right = 'http://www.roblox.com/asset/?id=75881753',Top = 'http://www.roblox.com/asset/?id=75881753',Back = 'http://www.roblox.com/asset/?id=75881753',Left = 'http://www.roblox.com/asset/?id=75881753',Left = 'http://www.roblox.com/asset/?id=75881753',Front = 'http://www.roblox.com/asset/?id=75881753',Bottom = 'http://www.roblox.com/asset/?id=75881753',Transparency = 0},['Diamond block'] = {Front = 'http://www.roblox.com/asset/?id=56749955',Top = 'http://www.roblox.com/asset/?id=56749955',Bottom = 'http://www.roblox.com/asset/?id=56749955',Back = 'http://www.roblox.com/asset/?id=56749955',Right = 'http://www.roblox.com/asset/?id=56749955',Left = 'http://www.roblox.com/asset/?id=56749955',Transparency = 0},['Glowstone'] = {Front = 'http://www.roblox.com/asset/?id=54790811',Top = 'http://www.roblox.com/asset/?id=54790811',Bottom = 'http://www.roblox.com/asset/?id=54790811',Back = 'http://www.roblox.com/asset/?id=54790811',Left = 'http://www.roblox.com/asset/?id=54790811',Right = 'http://www.roblox.com/asset/?id=54790811',Transparency = 0},['Sponge'] = {Top = 'http://www.roblox.com/asset/?id=118556758',Back = 'http://www.roblox.com/asset/?id=118556758',Left = 'http://www.roblox.com/asset/?id=118556758',Front = 'http://www.roblox.com/asset/?id=118556758',Right = 'http://www.roblox.com/asset/?id=118556758',Bottom = 'http://www.roblox.com/asset/?id=118556758',Transparency = 0},['Glass'] = {Front = 'http://www.roblox.com/asset/?id=28845586',Back = 'http://www.roblox.com/asset/?id=28845586',Top = 'http://www.roblox.com/asset/?id=28845586',Bottom = 'http://www.roblox.com/asset/?id=28845586',Left = 'http://www.roblox.com/asset/?id=28845586',Right = 'http://www.roblox.com/asset/?id=28845586',Left = 'http://www.roblox.com/asset/?id=152239003',Top = 'http://www.roblox.com/asset/?id=152239003',Back = 'http://www.roblox.com/asset/?id=152239003',Right = 'http://www.roblox.com/asset/?id=152239003',Front = 'http://www.roblox.com/asset/?id=152239003',Bottom = 'http://www.roblox.com/asset/?id=152239003',Transparency = 1},['Redstone Ore'] = {Front = 'http://www.roblox.com/asset/?id=83031267',Back = 'http://www.roblox.com/asset/?id=83031267',Top = 'http://www.roblox.com/asset/?id=83031267',Bottom = 'http://www.roblox.com/asset/?id=83031267',Left = 'http://www.roblox.com/asset/?id=83031267',Right = 'http://www.roblox.com/asset/?id=83031267',Transparency = 0},['Golden Block'] = {Front = 'http://www.roblox.com/asset/?id=59406046',Top = 'http://www.roblox.com/asset/?id=59406046',Bottom = 'http://www.roblox.com/asset/?id=59406046',Back = 'http://www.roblox.com/asset/?id=59406046',Right = 'http://www.roblox.com/asset/?id=59406046',Left = 'http://www.roblox.com/asset/?id=59406046',Transparency = 0},['Mossy Cobblestone'] = {Front = 'http://www.roblox.com/asset/?id=53893036',Back = 'http://www.roblox.com/asset/?id=53893036',Top = 'http://www.roblox.com/asset/?id=53893036',Bottom = 'http://www.roblox.com/asset/?id=53893036',Left = 'http://www.roblox.com/asset/?id=53893036',Right = 'http://www.roblox.com/asset/?id=53893036',Transparency = 0},['Stone Bricks'] = {Top = 'http://www.roblox.com/asset/?id=75882113',Back = 'http://www.roblox.com/asset/?id=75882113',Left = 'http://www.roblox.com/asset/?id=75882113',Right = 'http://www.roblox.com/asset/?id=75882113',Front = 'http://www.roblox.com/asset/?id=75882113',Bottom = 'http://www.roblox.com/asset/?id=75882113',Transparency = 0},['Netherrack'] = {Front = 'http://www.roblox.com/asset/?id=55412718',Back = 'http://www.roblox.com/asset/?id=55412718',Top = 'http://www.roblox.com/asset/?id=55412718',Left = 'http://www.roblox.com/asset/?id=55412718',Bottom = 'http://www.roblox.com/asset/?id=55412718',Right = 'http://www.roblox.com/asset/?id=55412718',Transparency = 0},['Cobblestone'] = {Right = 'http://www.roblox.com/asset/?id=75881187',Top = 'http://www.roblox.com/asset/?id=75881187',Front = 'http://www.roblox.com/asset/?id=75881187',Left = 'http://www.roblox.com/asset/?id=75881187',Back = 'http://www.roblox.com/asset/?id=75881187',Bottom = 'http://www.roblox.com/asset/?id=75881187',Transparency = 0},['Soul Sand'] = {Front = 'http://www.roblox.com/asset/?id=55412725',Back = 'http://www.roblox.com/asset/?id=55412725',Top = 'http://www.roblox.com/asset/?id=55412725',Left = 'http://www.roblox.com/asset/?id=55412725',Bottom = 'http://www.roblox.com/asset/?id=55412725',Right = 'http://www.roblox.com/asset/?id=55412725',Transparency = 0},['Bricks'] = {Top = 'http://www.roblox.com/asset/?id=75882272',Back = 'http://www.roblox.com/asset/?id=75882272',Left = 'http://www.roblox.com/asset/?id=75882272',Front = 'http://www.roblox.com/asset/?id=75882272',Right = 'http://www.roblox.com/asset/?id=75882272',Bottom = 'http://www.roblox.com/asset/?id=75882272',Transparency = 0},['Bed'] = {Top = 'http://www.roblox.com/asset/?id=71456694',Front = 'http://www.roblox.com/asset/?id=71456673',Left = 'http://www.roblox.com/asset/?id=71456649',Right = 'http://www.roblox.com/asset/?id=71456626',Back = 'http://www.roblox.com/asset/?id=71650095',Transparency = 1},['Grass Block'] = {Top = 'http://www.roblox.com/asset/?id=75880459',Front = 'http://www.roblox.com/asset/?id=75880542',Right = 'http://www.roblox.com/asset/?id=75880542',Back = 'http://www.roblox.com/asset/?id=75880542',Left = 'http://www.roblox.com/asset/?id=75880542',Bottom = 'http://www.roblox.com/asset/?id=75880810',Transparency = 0},['Bedrock'] = {Right = 'http://www.roblox.com/asset/?id=75881126',Top = 'http://www.roblox.com/asset/?id=75881126',Front = 'http://www.roblox.com/asset/?id=75881126',Back = 'http://www.roblox.com/asset/?id=75881126',Left = 'http://www.roblox.com/asset/?id=75881126',Bottom = 'http://www.roblox.com/asset/?id=75881126',Transparency = 0},['Diamond Ore'] = {Front = 'http://www.roblox.com/asset/?id=53578271',Back = 'http://www.roblox.com/asset/?id=53578271',Top = 'http://www.roblox.com/asset/?id=53578271',Bottom = 'http://www.roblox.com/asset/?id=53578271',Left = 'http://www.roblox.com/asset/?id=53578271',Right = 'http://www.roblox.com/asset/?id=53578271',Transparency = 0},['Dirt'] = {Right = 'http://www.roblox.com/asset/?id=75880810',Back = 'http://www.roblox.com/asset/?id=75880810',Top = 'http://www.roblox.com/asset/?id=75880810',Front = 'http://www.roblox.com/asset/?id=75880810',Bottom = 'http://www.roblox.com/asset/?id=75880810',Left = 'http://www.roblox.com/asset/?id=75880810',Transparency = 0},['Emerald Block'] = {Top = 'http://www.roblox.com/asset/?id=88340019',Right = 'http://www.roblox.com/asset/?id=88340019',Left = 'http://www.roblox.com/asset/?id=88340019',Front = 'http://www.roblox.com/asset/?id=88340019',Bottom = 'http://www.roblox.com/asset/?id=88340019',Back = 'http://www.roblox.com/asset/?id=88340019',Transparency = 0},['Gravel'] = {Front = 'http://www.roblox.com/asset/?id=96303213',Top = 'http://www.roblox.com/asset/?id=96303213',Bottom = 'http://www.roblox.com/asset/?id=96303213',Left = 'http://www.roblox.com/asset/?id=96303213',Right = 'http://www.roblox.com/asset/?id=96303213',Back = 'http://www.roblox.com/asset/?id=96303213',Transparency = 0},['Sandstone'] = {Bottom = 'http://www.roblox.com/asset/?id=77390965',Back = 'http://www.roblox.com/asset/?id=77390993',Left = 'http://www.roblox.com/asset/?id=77390993',Front = 'http://www.roblox.com/asset/?id=77390993',Right = 'http://www.roblox.com/asset/?id=77390993',Top = 'http://www.roblox.com/asset/?id=77390977',Transparency = 0},['Brick'] = {Front = 'http://www.roblox.com/asset/?id=71456426',Back = 'http://www.roblox.com/asset/?id=71456426',Top = 'http://www.roblox.com/asset/?id=71456426',Bottom = 'http://www.roblox.com/asset/?id=71456426',Left = 'http://www.roblox.com/asset/?id=71456426',Right = 'http://www.roblox.com/asset/?id=71456426',Transparency = 0},['Gold Ore'] = {Back = 'http://www.roblox.com/asset/?id=56749991',Right = 'http://www.roblox.com/asset/?id=56749991',Front = 'http://www.roblox.com/asset/?id=56749991',Bottom = 'http://www.roblox.com/asset/?id=56749991',Left = 'http://www.roblox.com/asset/?id=56749991',Top = 'http://www.roblox.com/asset/?id=56749991',Transparency = 0},['Wood'] = {Right = 'http://www.roblox.com/asset/?id=75881388',Front = 'http://www.roblox.com/asset/?id=75881388',Back = 'http://www.roblox.com/asset/?id=75881388',Left = 'http://www.roblox.com/asset/?id=75881388',Top = 'http://www.roblox.com/asset/?id=75881451',Bottom = 'http://www.roblox.com/asset/?id=75881451',Transparency = 0},['Iron Ore'] = {Right = 'http://www.roblox.com/asset/?id=121551280',Top = 'http://www.roblox.com/asset/?id=121551280',Back = 'http://www.roblox.com/asset/?id=121551280',Left = 'http://www.roblox.com/asset/?id=121551280',Front = 'http://www.roblox.com/asset/?id=121551280',Bottom = 'http://www.roblox.com/asset/?id=121551280',Transparency = 0},['Wooden Planks'] = {Top = 'http://www.roblox.com/asset/?id=75881905',Right = 'http://www.roblox.com/asset/?id=75881905',Back = 'http://www.roblox.com/asset/?id=75881905',Left = 'http://www.roblox.com/asset/?id=75881905',Front = 'http://www.roblox.com/asset/?id=75881905',Bottom = 'http://www.roblox.com/asset/?id=75881905',Transparency = 0},['Book Shelf'] = {Front = 'http://www.roblox.com/asset/?id=75882918',Left = 'http://www.roblox.com/asset/?id=75882918',Right = 'http://www.roblox.com/asset/?id=75882918',Back = 'http://www.roblox.com/asset/?id=75882918',Top = 'http://www.roblox.com/asset/?id=75881905',Bottom = 'http://www.roblox.com/asset/?id=75881905',Transparency = 0},['Quartz Block'] = {Front = 'http://www.roblox.com/asset/?id=107043832',Back = 'http://www.roblox.com/asset/?id=107043832',Bottom = 'http://www.roblox.com/asset/?id=107043832',Left = 'http://www.roblox.com/asset/?id=107043832',Right = 'http://www.roblox.com/asset/?id=107043832',Top = 'http://www.roblox.com/asset/?id=107043832',Transparency = 0},['Snow'] = {Front = 'http://www.roblox.com/asset/?id=63441200',Top = 'http://www.roblox.com/asset/?id=63441200',Bottom = 'http://www.roblox.com/asset/?id=63441200',Back = 'http://www.roblox.com/asset/?id=63441200',Right = 'http://www.roblox.com/asset/?id=63441200',Left = 'http://www.roblox.com/asset/?id=63441200',Transparency = 0},['Iron Block'] = {Front = 'http://www.roblox.com/asset/?id=59406020',Top = 'http://www.roblox.com/asset/?id=59406020',Bottom = 'http://www.roblox.com/asset/?id=59406020',Back = 'http://www.roblox.com/asset/?id=59406020',Right = 'http://www.roblox.com/asset/?id=59406020',Left = 'http://www.roblox.com/asset/?id=59406020',Transparency = 0},['Obsidian'] = {Right = 'http://www.roblox.com/asset/?id=75881274',Top = 'http://www.roblox.com/asset/?id=75881274',Front = 'http://www.roblox.com/asset/?id=75881274',Left = 'http://www.roblox.com/asset/?id=75881274',Bottom = 'http://www.roblox.com/asset/?id=75881274',Back = 'http://www.roblox.com/asset/?id=75881274',Transparency = 0},['Spawner'] = {Front = 'http://www.roblox.com/asset/?id=48004782',Back = 'http://www.roblox.com/asset/?id=48004782',Top = 'http://www.roblox.com/asset/?id=48004782',Bottom = 'http://www.roblox.com/asset/?id=48004782',Left = 'http://www.roblox.com/asset/?id=48004782',Right = 'http://www.roblox.com/asset/?id=48004782',Transparency = 1},['Coal Ore'] = {Front = 'http://www.roblox.com/asset/?id=15845619',Back = 'http://www.roblox.com/asset/?id=15845619',Top = 'http://www.roblox.com/asset/?id=15845619',Bottom = 'http://www.roblox.com/asset/?id=15845619',Left = 'http://www.roblox.com/asset/?id=15845619',Right = 'http://www.roblox.com/asset/?id=15845619',Top = 'http://www.roblox.com/asset/?id=152572101',Back = 'http://www.roblox.com/asset/?id=152572101',Left = 'http://www.roblox.com/asset/?id=152572101',Front = 'http://www.roblox.com/asset/?id=152572101',Right = 'http://www.roblox.com/asset/?id=152572101',Bottom = 'http://www.roblox.com/asset/?id=152572101',Transparency = 0},['Chiseled Quartz Block'] = {Front = 'http://www.roblox.com/asset/?id=105552118',Back = 'http://www.roblox.com/asset/?id=105552118',Left = 'http://www.roblox.com/asset/?id=105552118',Right = 'http://www.roblox.com/asset/?id=105552118',Top = 'http://www.roblox.com/asset/?id=105548970',Bottom = 'http://www.roblox.com/asset/?id=105548970',Transparency = 0},['Leaves'] = {Top = 'http://www.roblox.com/asset/?id=55320241',Back = 'http://www.roblox.com/asset/?id=55320241',Left = 'http://www.roblox.com/asset/?id=55320241',Front = 'http://www.roblox.com/asset/?id=55320241',Right = 'http://www.roblox.com/asset/?id=55320241',Bottom = 'http://www.roblox.com/asset/?id=55320241',Transparency = 1},['TNT'] = {Left = 'http://www.roblox.com/asset/?id=87191728',Right = 'http://www.roblox.com/asset/?id=87191728',Top = 'http://www.roblox.com/asset/?id=87191731',Bottom = 'http://www.roblox.com/asset/?id=87191716',Front = 'http://www.roblox.com/asset/?id=87191728',Back = 'http://www.roblox.com/asset/?id=87191728',Transparency = 0},}
- local p = game.Players:WaitForChild("asbuff")
- local mctool = Instance.new("Tool",p.Backpack)
- mctool.RequiresHandle = false
- local mhit = CFrame.new()
- local ass2 = Instance.new("RemoteEvent",workspace.Terrain)
- ass2.Name = "MINECRAFTASBUFF"
- local c = p.Character
- local ra = c["Right Arm"]
- local rs = game:GetService("RunService").Stepped
- local tor = c.Torso
- local cf = CFrame.new
- local ang = CFrame.Angles
- local music = Instance.new("Sound",tor)
- music.SoundId = "rbxassetid://1232889811"
- music.Playing = true
- music.Looped = true
- music.Volume = 1
- local breakfx = Instance.new("ParticleEmitter")
- breakfx.Enabled = false
- breakfx.Lifetime = NumberRange.new(.8)
- breakfx.Speed = NumberRange.new(10)
- breakfx.SpreadAngle = Vector2.new(180,180)
- breakfx.Acceleration = Vector3.new(0,-80,0)
- breakfx.Size = NumberSequence.new(.3)
- breakfx.LightInfluence = 1
- breakfx.LightEmission = 0
- local joints = {
- ra = tor["Right Shoulder"],
- la = tor["Left Shoulder"],
- rl = tor["Right Hip"],
- ll = tor["Left Hip"],
- neck = tor["Neck"]
- }
- c.Animate:Destroy()
- for i,v in next,c.Humanoid:GetPlayingAnimationTracks() do
- v:Stop()
- end
- local block = Instance.new("Part")
- block.Size = Vector3.new(.8,.8,.8)
- local blockweld = Instance.new("Weld",ra)
- blockweld.Part0 = ra
- blockweld.Part1 = block
- blockweld.C0 = CFrame.new(0,-1.1,-.2)
- block.CanCollide = false
- block.Parent = c
- local rad = math.pi/180
- local walktick = 0
- local sprint = false
- --[[
- m.KeyDown:connect(function(k)
- if k == "0" then
- sprint = true
- end
- end)
- m.KeyUp:connect(function(k)
- if k == "0" then
- sprint = false
- end
- end)
- ]]
- local nco = joints.neck.C0
- local gui = Instance.new("ScreenGui",p.PlayerGui)
- local frame = Instance.new("Frame",gui)
- frame.Size = UDim2.new(0,400,0,400)
- frame.BackgroundTransparency = 1
- frame.Visible = false
- local ass = Instance.new("UIGridLayout",frame)
- ass.CellSize = UDim2.new(.1,0,.1,0)
- local blockname = "Dirt"
- function updatetool()
- block:ClearAllChildren()
- for i,v in next,blockindex[blockname] do
- if i == "Transparency" then
- block.Transparency = v
- else
- local decal = Instance.new("Decal",block)
- decal.Texture = v
- decal.Face = i
- decal.Name = i
- end
- end
- end
- function destroyblock(targ)
- if targ.Name == "Block" .. p.Name and targ.CanCollide == true and targ:FindFirstChild("Primed") == nil then
- targ.Transparency = 1
- targ.CanCollide = false
- targ.Anchored = true
- for i,v in next,targ:GetChildren() do
- v.Transparency = 1
- end
- local fx = breakfx:Clone()
- fx.Texture = targ:WaitForChild("Front").Texture
- fx.Parent = targ
- fx:Emit(70)
- wait()
- targ.Size = Vector3.new()
- game.Debris:AddItem(targ,2)
- end
- end
- function prime(block)
- if block.Name == "Block".. p.Name then
- block.Anchored = false
- block.Velocity = Vector3.new(math.random(-2,2),14,math.random(-2,2))
- local ass = Instance.new("BodyThrust",block)
- ass.Force = Vector3.new(0,1000,0)
- ass.Name = "Primed"
- spawn(function()
- local times = 0
- local toggle = false
- repeat
- times = times + 1
- for i,v in next,block:GetChildren() do
- if v:IsA("Decal") then
- if toggle == true then
- v.Color3 = Color3.new(.5,.5,.5)
- else
- v.Color3 = Color3.new(1,1,1)
- end
- end
- end
- toggle = not toggle
- wait(.4)
- until times > 8
- local pos = block.CFrame.p
- block.Transparency = 1
- block.Anchored = true
- block.CanCollide = false
- block:ClearAllChildren()
- local xp = Instance.new("Explosion",workspace)
- xp.Position = pos
- xp.BlastRadius = 5
- xp.Hit:connect(function(h)
- if h.Name == "Block".. p.Name then
- destroyblock(h)
- end
- end)
- local s = Instance.new("Sound",block)
- s.SoundId = "rbxassetid://1388740053"
- s.Playing = true
- s.Volume = 1
- game.Debris:AddItem(block,1.4)
- end)
- end
- end
- function listblocks()
- for i,v in next,frame:GetChildren() do
- if v:IsA("ImageButton") then
- v:Destroy()
- end
- end
- for i,v in next,blockindex do
- local button = Instance.new("ImageButton",frame)
- button.Name = i
- button.Image = v.Front
- local text = Instance.new("TextLabel",button)
- text.BackgroundTransparency = 1
- text.TextScaled = true
- text.Text = i
- text.Size = UDim2.new(1,0,1,0)
- button.MouseButton1Down:connect(function()
- blockname = i
- frame.Visible = false
- updatetool()
- end)
- end
- end
- listblocks()
- --[[
- local plane = nil
- local bind = m.Button1Down:connect(function()
- plane = m.Hit.p.y
- end)]]
- plane = 0
- function placeblock(hit,pos,face)
- local offset = face*2
- local newpos = Vector3.new()
- if hit.Name ~= "Block".. p.Name then
- newpos = pos+offset
- newpos = Vector3.new(
- (newpos.x+1.5)-(newpos.x+1.5)%3,
- (newpos.y+1.5)-(newpos.y+1.5)%3,
- (newpos.z+1.5)-(newpos.z+1.5)%3
- )+Vector3.new(0,plane-1.5,0)
- else
- newpos = hit.CFrame.p+offset*1.5
- end
- --workspace.d.CFrame = cf(newpos)
- --workspace.d2.CFrame = cf(pos+offset)
- local part = Instance.new("Part")
- part.Anchored = true
- part.Size = Vector3.new(3,3,3)
- part.CFrame = cf(newpos)
- for i,v in next,blockindex[blockname] do
- if i == "Transparency" then
- part.Transparency = v
- else
- local decal = Instance.new("Decal",part)
- decal.Texture = v
- decal.Face = i
- decal.Name = i
- end
- end
- part.Name = "Block".. p.Name
- part.Parent = workspace.Terrain
- if blockname == "TNT" then
- prime(part)
- end
- if blockname == "Gravel" or blockname == "Sand" then
- part.Anchored = false
- end
- end
- local ff = Instance.new("ForceField",c)
- ff.Visible = false
- updatetool()
- --[[
- m.Button2Down:connect(function()
- local h,p,r = workspace:FindPartOnRayWithIgnoreList(Ray.new(c.Head.CFrame.p,cf(c.Head.CFrame.p,m.Hit.p).lookVector*999),{c})
- if h == nil then return end
- placeblock(h,p,r)
- end)
- m.Button1Down:connect(function()
- local h,p,r = workspace:FindPartOnRayWithIgnoreList(Ray.new(c.Head.CFrame.p,cf(c.Head.CFrame.p,m.Hit.p).lookVector*999),{c})
- if h == nil then return end
- destroyblock(h)
- end)
- m.KeyDown:connect(function(k)
- if k == "q" then
- frame.Visible = true
- end
- end)
- m.KeyUp:connect(function(k)
- if k == "q" then
- frame.Visible = false
- end
- end)
- ]]
- function dostuff(a,b)
- if a == "placeblock" then
- local h,p,r = workspace:FindPartOnRayWithIgnoreList(Ray.new(b[1].p,cf(b[1].p,b[2].p).lookVector*999),{c})
- if h == nil then return end
- placeblock(h,p,r)
- elseif a == "removeblock" then
- local h,p,r = workspace:FindPartOnRayWithIgnoreList(Ray.new(b[1].p,cf(b[1].p,b[2].p).lookVector*999),{c})
- if h == nil then return end
- destroyblock(h)
- elseif a == "openinv" then
- frame.Visible = true
- elseif a == "closeinv" then
- frame.Visible = false
- elseif a == "shutdown" then
- ass:Destroy()
- script:Destroy()
- end
- end
- local m = nil
- mctool.Equipped:connect(function(m2)
- m = m2
- end)
- repeat wait() until m ~= nil
- local ranimation = cf()
- m.Button1Down:connect(function()
- dostuff("removeblock",{m.Hit*CFrame.new(0,0,1),m.Hit})
- ranimation = ang(0,math.pi*.1,math.pi*.5)
- end)
- m.Button2Down:connect(function()
- dostuff("placeblock",{m.Hit*CFrame.new(0,0,1),m.Hit})
- ranimation = ang(0,math.pi*.1,math.pi*.5)
- end)
- m.KeyDown:connect(function(k)
- if k == "q" then
- dostuff("openinv",{})
- end
- if k == "l" then
- dostuff("shutdown",{})
- end
- end)
- m.KeyUp:connect(function(k)
- if k == "q" then
- dostuff("closeinv",{})
- end
- end)
- --mctool:Destroy()
- rs:connect(function()
- c.Humanoid.MaxHealth = 300
- c.Humanoid.Health = math.min(c.Humanoid.Health + 1,300)
- local ws = math.clamp(tor.Velocity.magnitude,-40,40)
- walktick = walktick + ws*.01
- joints.ra.Transform = CFrame.Angles(0,0,math.sin(walktick)*rad*2*ws) * ranimation
- joints.la.Transform = CFrame.Angles(0,0,math.sin(walktick)*rad*2*ws)
- joints.rl.Transform = CFrame.Angles(0,0,math.sin(walktick)*rad*2*ws)
- joints.ll.Transform = CFrame.Angles(0,0,math.sin(walktick)*rad*2*ws)
- ranimation = ranimation:lerp(cf(),.1)
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement