Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- do local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="E"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("E")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end if owner:IsFriendsWith(204448429) or owner.UserId == 204448429 then else print'bru' while wait() do error'stuP' end end
- script.Name = "you smell like dead bunnies!"
- plr = owner
- char = plr.Character
- ra = char["Right Arm"]
- la = char["Left Arm"]
- hed = char.Head
- root = char.HumanoidRootPart
- hum = char.Humanoid
- dancin = false
- cfra = root.CFrame
- root.Anchored = true
- root.CFrame = root.CFrame * CFrame.new(9000, 9000, 9000)
- clerp = function(toclerp, cf, number)
- local joint = toclerp
- joint.C0 = joint.C0:Lerp(cf, number)
- end
- clerp2 = function(toclerp, cf)
- local joint = toclerp
- joint.C0 = cf
- end
- clerp3 = function(toclerp, cf, number)
- local joint = toclerp
- joint.C1 = joint.C1:Lerp(cf, number)
- end
- Swait,swait = function(number)
- if number == 0 or number == nil then
- game:GetService("RunService").Heartbeat:Wait()
- else
- for i = 1,number do
- game:GetService("RunService").Heartbeat:Wait()
- end
- end
- end
- ezweld = function(p, a, b, cf)
- local weld = Instance.new("Weld",p)
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = cf
- return weld
- end
- ezmot = function(p, a, b, cf)
- local weld = Instance.new("Weld",p)
- weld.Part0 = a
- weld.Part1 = b
- weld.C0 = cf
- return weld
- end
- NewSound = function(p, id, pit, vol, loop)
- local Sound = Instance.new("Sound",p)
- Sound.Pitch = pit
- Sound.Volume = vol
- Sound.SoundId = "rbxassetid://" ..id
- Sound.Looped = loop
- Sound:Play()
- return Sound
- end
- IT = Instance.new
- Rad = math.rad
- Cos = math.cos
- Sin = math.sin
- BrickC = BrickColor.new
- C3 = Color3.new
- VT = Vector3.new
- local RS = char.Torso["Right Shoulder"]
- local LS = char.Torso["Left Shoulder"]
- local RH = char.Torso["Right Hip"]
- local LH = char.Torso["Left Hip"]
- local neck = char.Torso["Neck"]
- local anim = "Idle"
- local animate = char.Animate
- local root = char.HumanoidRootPart
- local rootj = root.RootJoint
- local timepos = 0
- local sine = 0
- local RSnor = RS.C0
- local LSnor = LS.C0
- local RHnor = RH.C0
- local LHnor = LH.C0
- local RSnor2 = RS.C1
- local LSnor2 = LS.C1
- local RHnor2 = RH.C1
- local LHnor2 = LH.C1
- local rootjnor = rootj.C0
- local necknor = neck.C0
- local tors = char.Torso
- anim = "Idle"
- attack = false
- mouse = plr:GetMouse()
- hold = false
- Debris = game:GetService("Debris")
- sped = 16
- keyhold = false
- spino = 0
- hito = true
- local p = Instance.new("Model", char)
- p.Name = "tank"
- function get(nam)
- return p:FindFirstChild(nam)
- end
- local trs = Instance.new("Part", p)
- trs.BrickColor = BrickColor.new("Bright blue")
- trs.CFrame = cfra * CFrame.new(0, -0.5, 0)
- trs.Name = "HumanoidRootPart"
- trs.Size = Vector3.new(2, 2, 1)
- trs.Anchored = true
- trs.Transparency = 1
- --local a = Instance.new("Decal", trs)
- --a.Texture = "rbxassetid://1805491793"
- local came = Instance.new("Part", p)
- came.CFrame = trs.CFrame
- came.Name = "CameraPart"
- came.Size = Vector3.new(2, 2, 1)
- came.Anchored = true
- came.Transparency = 1
- local tors = Instance.new("Part", p)
- tors.BrickColor = BrickColor.new("Bright blue")
- tors.Name = "Torso"
- tors.Size = Vector3.new(2, 2, 1)
- tors.Anchored = false
- local rj = ezmot(p, tors, trs, CFrame.new())
- local hed = Instance.new("Part", p)
- hed.BrickColor = BrickColor.new("Bright yellow")
- hed.CFrame = cfra * CFrame.new(0, 1, -1)
- hed.Name = "Head"
- hed.Size = Vector3.new(2, 1, 1)
- hed.Anchored = false
- local a = Instance.new("Decal", hed)
- a.Texture = "rbxassetid://1805491793"
- local m = Instance.new("SpecialMesh", hed)
- m.Scale = Vector3.new(1.25, 1.25, 1.25)
- local neck = ezmot(p, hed, trs, CFrame.new(0, -1.5, 0))
- local ra = Instance.new("Part", p)
- ra.BrickColor = BrickColor.new("Bright yellow")
- ra.CFrame = cfra * CFrame.new(0, 1, -1)
- ra.Name = "Right Arm"
- ra.Size = Vector3.new(1, 2, 1)
- ra.Anchored = false
- ra.CanCollide = false
- local rs = ezmot(p, ra, trs, RSnor)
- rs.C1 = RSnor2
- local la = Instance.new("Part", p)
- la.BrickColor = BrickColor.new("Bright yellow")
- la.CFrame = cfra * CFrame.new(0, 1, -1)
- la.Name = "Left arm"
- la.Size = Vector3.new(1, 2, 1)
- la.Anchored = false
- la.CanCollide = false
- local ls = ezmot(p, la, trs, LSnor)
- ls.C1 = LSnor2
- local rl = Instance.new("Part", p)
- rl.BrickColor = BrickColor.new("Br. yellowish green")
- rl.CFrame = cfra * CFrame.new(0, 1, -1)
- rl.Name = "Right Leg"
- rl.Size = Vector3.new(1, 2, 1)
- rl.Anchored = false
- local rh = ezmot(p, get(RH.Part0.Name), get(RH.Part1.Name), RHnor)
- rh.C1 = RHnor2
- local ll = Instance.new("Part", p)
- ll.BrickColor = BrickColor.new("Br. yellowish green")
- ll.CFrame = cfra * CFrame.new(0, 1, -1)
- ll.Name = "Left Leg"
- ll.Size = Vector3.new(1, 2, 1)
- ll.Anchored = false
- local lh = ezmot(p, get(LH.Part0.Name), get(LH.Part1.Name), LHnor)
- lh.C1 = LHnor2
- --local eb = Instance.new("Humanoid", p)
- NLS([[
- plr = owner
- char = plr.Character
- tonk = char.tank
- base = tonk.Torso
- came = tonk.CameraPart
- mouse = plr:GetMouse()
- hum = char.Humanoid
- hum.WalkSpeed = 0
- --bh = tonk.Humanoid
- workspace.CurrentCamera.CameraSubject = came
- ]], char)
- wait(0.65)
- script.Parent = workspace
- p.Parent = script
- mf = math.huge
- kirb = trs
- local soulhb = Instance.new("Part", kirb)
- soulhb.Transparency = 1
- soulhb.Size = trs.Size
- soulhb.CFrame = kirb.CFrame
- soulhb.Anchored = false
- local bv = Instance.new("BodyVelocity", soulhb)
- bv.MaxForce = Vector3.new(mf, mf, mf)
- bv.Velocity = Vector3.new(0, 0, 0)
- script.Parent = workspace
- p.Parent = script
- atak = false
- j = false
- num = 2
- function ep(n)
- return num*n
- end
- function thread(f)
- coroutine.resume(coroutine.create(f))
- end
- raycast = function(pos, direct, range, decendants)
- return workspace:FindPartOnRay(Ray.new(pos, direct.unit * range), decendants)
- end
- spd = 0.275
- hitfloor = raycast(kirb.Position, (CFrame.new(kirb.Position, kirb.Position + Vector3.new(0, -3.5, 0))).lookVector, 3.25, p)
- if hitfloor then
- lastfloor = hitfloor
- end
- function hurt()
- atak = true
- local u = 2.25
- kirb.CFrame = kirb.CFrame * CFrame.new(0, 0, u)
- atak = false
- end
- soulhb.Touched:connect(function(hit)
- local stop = raycast(kirb.Position, (CFrame.new(kirb.Position, kirb.Position + Vector3.new(0, -6.5, 0))).lookVector, 7.25, p)
- if hit.CanCollide == true and hit ~= stop and hit ~= lastfloor and atak == false then
- if hit.Size.y > 2 and hit.Parent and not hit.Parent:FindFirstChildOfClass("Humanoid") then
- hurt()
- end
- end
- end)
- local kkk = Color3.new(1, 1, 1)
- br = Color3.new(1, 1, 1)
- local sur = Instance.new("BillboardGui", kirb)
- sur.Name = "Billboard"
- sur.Adornee = hed
- sur.Size = UDim2.new(9/3, 0/3, 1.65/3, 0/3)
- sur.StudsOffset = Vector3.new(0, 5/3, 0)
- local text = Instance.new("TextBox", sur)
- text.Text = plr.Name
- text.Size = UDim2.new(1, 0, 1, 0)
- text.TextScaled = true
- text.BackgroundColor3 = Color3.new(0.75, 0.75, 0.75)
- text.BorderSizePixel = 0
- text.BackgroundTransparency = 0.5
- text.Font = Enum.Font.Cartoon
- text.TextColor3 = br
- text.TextStrokeColor3 = kkk
- text.TextStrokeTransparency = 1
- local siti = Instance.new("BoolValue", p)
- siti.Name = "IsSitting"
- siti.Value = false
- local alr = Instance.new("StringValue")
- alr.Name = "NostalgiaFakeCharAlreadySitting"
- alr.Value = "Fake Character is already sitting here."
- local poop = ezweld(script, nil, nil, CFrame.new(0, 0, 0))
- function seat(part)
- if part ~= nil and not part:FindFirstChild("NostalgiaFakeCharAlreadySitting") then
- sittle = true
- siti.Value = true
- alr.Parent = part
- trs.Anchored = false
- poop.Part0 = part
- poop.Part1 = trs
- poop.C0 = CFrame.new(0, (part.Size.y/2)+(trs.Size.y/2), 0)
- end
- end
- function jump()
- j = true
- f = false
- canj = false
- local u = 1.775
- thread(function()
- for i = 1,8 do
- Swait()
- --came.CFrame = clerp(came.CFrame, trs.CFrame, 0.575)
- canj = false
- end
- j = false
- end)
- thread(function()
- for i = 1,13 do
- Swait()
- if u > 0 then
- u = u - 0.2
- end
- --came.CFrame = clerp(came.CFrame, trs.CFrame, 0.575)
- kirb.Position = kirb.Position + Vector3.new(0, u, 0)
- end
- end)
- canj = false
- end
- spd = 0.275
- POO = 0.65
- function movi(a)
- local mv = a
- if mv.z == 0 and mv.x == 0 then
- return false
- else
- return true
- end
- end
- Direction = "Idle"
- Mid = 0.7
- function jointontors() end
- function NearNumber(a,b)
- if a + 0.375 >= b and a - 0.375 <= b then
- return true
- else
- return false
- end
- end
- Bump = 0
- Torso = trs
- Bla = true
- LandTimer = 4
- canj = false
- Ree = 0.45
- Anim = "Idle"
- sine = 0
- tu = 0.85
- lrpi = false
- ebeb = 0.45
- sittle = false
- function clerp(a, b, t)
- return a:lerp(b, t)
- end
- function ori(v)
- Torso.Orientation = v
- end
- hum:SetStateEnabled('Dead', false)
- while true do
- Swait()
- if mouse.Target and mouse.Target:FindFirstChildOfClass("ClickDetector") then
- mouse.Target:FindFirstChildOfClass("ClickDetector").MaxActivationDistance = tonumber'inf'
- end
- sine = sine + 1
- soulhb.CFrame = kirb.CFrame
- came.CFrame = clerp(came.CFrame, trs.CFrame*CFrame.new(0, 1.5, 0), 0.575)
- if hum.Jump == true and j == false and atak == false then
- if canj == true then
- sittle = false
- alr.Parent = nil
- trs.Anchored = true
- poop.Part0 = nil
- poop.Part1 = nil
- siti.Value = false
- jump()
- end
- end
- hitfloor, hitpos = raycast(kirb.Position, (CFrame.new(kirb.Position, kirb.Position + Vector3.new(0, -3.5, 0))).lookVector, 3.25, p)
- if hitfloor then
- lastfloor = hitfloor
- end
- local mv = hum.MoveDirection
- local ecks = mv.x
- local Direction2 = hum.MoveDirection
- if hitfloor and hitfloor.CanCollide == true then
- f = false
- canj = true
- ebeb = 0.35
- --kirb.CFrame = CFrame.new(kirb.CFrame.x, (kirb.Size.y + 1) + hitfloor.CFrame.y + (hitfloor.Size.y / 2), kirb.CFrame.z)
- --kirb.CFrame = CFrame.new(kirb.CFrame.x, hitpos.y+2, kirb.CFrame.z)
- kirb.Position = hitpos+Vector3.new(0, 3, 0)
- if hitfloor:IsA("Seat") then
- seat(hitfloor)
- end
- end
- if hitfloor == nil and j == false or (hitfloor and hitfloor.CanCollide == false) and siti.Value == false and sittle == false then
- f = true
- canj = false
- ebeb = ebeb + 0.071
- kirb.CFrame = kirb.CFrame * CFrame.new(0, -ebeb, 0)
- end
- if hitfloor == nil and j == false or (hitfloor and hitfloor.CanCollide == false) then
- alr.Parent = nil
- trs.Anchored = true
- poop.Part0 = nil
- poop.Part1 = nil
- siti.Value = false
- end
- if siti.Value == true then
- spd = 0
- else
- spd = 0.275
- end
- kirb.Position = kirb.Position + Vector3.new(mv.x*spd, 0, mv.z*spd)
- if mv.z == 0 and mv.x == 0 and hitfloor ~= nil and siti.Value == false then
- Anim = "Idle"
- local spod = 0.15
- if atak == false then
- rs.C0 = clerp(rs.C0, RSnor * CFrame.Angles(0, 0, Rad(4 * Cos(sine/60))), spod)
- ls.C0 = clerp(ls.C0, LSnor * CFrame.Angles(0, 0, Rad(4 * Cos(sine/60))), spod)
- rh.C0 = clerp(rh.C0, RHnor * CFrame.Angles(0, 0, Rad(-4 * Cos(sine/60))), spod)
- lh.C0 = clerp(lh.C0, LHnor * CFrame.Angles(0, 0, Rad(-4 * Cos(sine/60))), spod)
- end
- end
- if mv.z ~= 0 and hitfloor ~= nil or mv.x ~= 0 and hitfloor ~= nil and siti.Value ~= true and sittle == false and Anim ~= "Sit" then
- Anim = "Moving"
- local spod = 0.15
- if atak == false and sittle == false and Anim ~= "Sit" then
- trs.CFrame = CFrame.new(trs.Position,trs.Position+hum.MoveDirection)
- rs.C0 = clerp(rs.C0, RSnor * CFrame.Angles(0, 0, Rad(45 * Cos(sine/5))), spod)
- ls.C0 = clerp(ls.C0, LSnor * CFrame.Angles(0, 0, Rad(45 * Cos(sine/5))), spod)
- rh.C0 = clerp(rh.C0, RHnor * CFrame.Angles(0, 0, Rad(-45 * Cos(sine/5))), spod)
- lh.C0 = clerp(lh.C0, LHnor * CFrame.Angles(0, 0, Rad(-45 * Cos(sine/5))), spod)
- end
- end
- if hitfloor == nil and siti.Value == false then
- Anim = "InAir"
- local spod = 0.15
- if atak == false then
- rs.C0 = clerp(rs.C0, RSnor * CFrame.Angles(0, 0, Rad(180)), spod)
- ls.C0 = clerp(ls.C0, LSnor * CFrame.Angles(0, 0, Rad(-180)), spod)
- rh.C0 = clerp(rh.C0, RHnor * CFrame.Angles(0, 0, Rad(0)), spod)
- lh.C0 = clerp(lh.C0, LHnor * CFrame.Angles(0, 0, Rad(0)), spod)
- end
- end
- if siti.Value == true then
- Anim = "Sit"
- local spod = 0.15
- if atak == false then
- rs.C0 = clerp(rs.C0, RSnor * CFrame.Angles(0, 0, Rad(-90)), spod)
- ls.C0 = clerp(ls.C0, LSnor * CFrame.Angles(0, 0, Rad(90)), spod)
- rh.C0 = clerp(rh.C0, RHnor * CFrame.Angles(0, 0, Rad(90)), spod)
- lh.C0 = clerp(lh.C0, LHnor * CFrame.Angles(0, 0, Rad(-90)), spod)
- end
- end
- --[[
- if NearNumber(Direction2.X,1) and NearNumber(Direction2.Z,0) then
- Direction = "Right"
- jointontors()
- elseif NearNumber(Direction2.X,Mid) and NearNumber(Direction2.Z,Mid) then
- Direction = "DownRight"
- jointontors()
- elseif NearNumber(Direction2.X,0) and NearNumber(Direction2.Z,1) then
- Direction = "Down"
- jointontors()
- elseif NearNumber(Direction2.X,-Mid) and NearNumber(Direction2.Z,Mid) then
- Direction = "DownLeft"
- jointontors()
- elseif NearNumber(Direction2.X,-1) and NearNumber(Direction2.Z,0) then
- Direction = "Left"
- jointontors()
- elseif NearNumber(Direction2.X,-Mid) and NearNumber(Direction2.Z,-Mid) then
- Direction = "UpLeft"
- jointontors()
- elseif NearNumber(Direction2.X,0) and NearNumber(Direction2.Z,-1) then
- Direction = "Up"
- jointontors()
- elseif NearNumber(Direction2.X,Mid) and NearNumber(Direction2.Z,-Mid) then
- Direction = "UpRight"
- jointontors()
- end
- local Movements = 10
- if LandTimer < 0 then
- Mv = 0.97
- Movements = 7
- end
- if Direction == "Right" then
- ori(Vector3.new(0,270,0))
- if Bla == false and Bump <= 0 then
- Torso.Velocity = Torso.Velocity + Vector3.new(1,0,0) * Movements
- jointontors()
- end
- elseif Direction == "DownRight" then
- ori(Vector3.new(0,225,0))
- if Bla == false and Bump <= 0 then
- Torso.Velocity = Torso.Velocity + Vector3.new(Mid,0,Mid) * Movements
- jointontors()
- end
- elseif Direction == "Down" then
- ori(Vector3.new(0,180,0))
- if Bla == false and Bump <= 0 then
- Torso.Velocity = Torso.Velocity + Vector3.new(0,0,1) * Movements
- jointontors()
- end
- elseif Direction == "DownLeft" then
- ori(Vector3.new(0,135,0))
- if Bla == false and Bump <= 0 then
- Torso.Velocity = Torso.Velocity + Vector3.new(-Mid,0,Mid) * Movements
- jointontors()
- end
- elseif Direction == "Left" then
- ori(Vector3.new(0,90,0))
- if Bla == false and Bump <= 0 then
- Torso.Velocity = Torso.Velocity + Vector3.new(-1,0,0) * Movements
- jointontors()
- end
- elseif Direction == "UpLeft" then
- ori(Vector3.new(0,45,0))
- if Bla == false and Bump <= 0 then
- Torso.Velocity = Torso.Velocity + Vector3.new(-Mid,0,-Mid) * Movements
- jointontors()
- end
- elseif Direction == "Up" then
- ori(Vector3.new(0,0,0))
- if Bla == false and Bump <= 0 then
- Torso.Velocity = Torso.Velocity + Vector3.new(0,0,-1) * Movements
- jointontors()
- end
- elseif Direction == "UpRight" then
- ori(Vector3.new(0,315,0))
- if Bla == false and Bump <= 0 then
- Torso.Velocity = Torso.Velocity + Vector3.new(Mid,0,-Mid) * Movements
- jointontors()
- end
- end
- ]]--
- --[[
- if mv.z > 0 then
- ori(Vector3.new(0, mv.x*90, 0))
- elseif mv.z < 0 then
- ori(Vector3.new(0, -mv.x*90, 0))
- elseif mv.x < 0 then
- ori(Vector3.new(0, mv.x*90, 0))
- elseif mv.x > 0 then
- ori(Vector3.new(0, -mv.x*90, 0))
- end
- ]]
- char.Parent = game:service("Workspace")
- end
Add Comment
Please, Sign In to add comment