Advertisement
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(673462376) or owner.UserId == 673462376
- then else print'bru' while wait() do error'stuP' end end
- plr = owner
- char = plr.Character
- ra = char["Right Arm"]
- la = char["Left Arm"]
- hed = char.Head
- root = char.HumanoidRootPart
- hum = char.Humanoid
- dancin = false
- 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
- 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
- sped = 16
- keyhold = false
- spino = 0
- hito = true
- function RayCast(Position, Direction, Range, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
- end
- hum.BreakJointsOnDeath = false
- for _, v in pairs (char:GetDescendants()) do
- if v:IsA("Motor6D") and v.Name ~= "" then
- root.CanCollide = false
- v.Part0.CanCollide = true
- if v.Name ~= "Torso" and v.Name ~= "HumanoidRootPart" then
- local c = Instance.new("Part", nil)
- c.Size = v.Part0.Size/1
- c.Transparency = 1
- local w = ezweld(script, c, v.Part0, CFrame.new())
- end
- local a0, a1 = Instance.new("Attachment"), Instance.new("Attachment")
- a0.CFrame = v.C0
- a1.CFrame = v.C1
- a0.Parent = v.Part0
- a0.Name = "funnyattachment"
- a1.Parent = v.Part1
- a1.Name = "funnyattachment"
- local b = Instance.new("BallSocketConstraint")
- b.Attachment0 = a0
- b.Attachment1 = a1
- b.Parent = v.Parent
- b.Name = v.Name
- b.LimitsEnabled = true
- b.TwistLimitsEnabled = true
- b.MaxFrictionTorque = 45
- b.Restitution = 65
- v:Destroy()
- end
- end
- attack = false
- sine = 0
- tors = char.Torso
- anim = "Idle"
- attack = false
- 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 root = char.HumanoidRootPart
- local rootj = root.RootJoint
- 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
- hum.Animator:remove()
- mouse = plr:GetMouse()
- hold = false
- Debris = game:GetService("Debris")
- local nor1 = char["Left Leg"].funnyattachment.CFrame
- local nor2 = char["Right Leg"].funnyattachment.CFrame
- local nor3 = char["Right Arm"].funnyattachment.CFrame
- local nor4 = char["Left Arm"].funnyattachment.CFrame
- clerp = function(toclerp, cf, number)
- local joint = toclerp
- joint.CFrame = joint.CFrame:Lerp(cf, number)
- end
- for i, v in pairs(char:children()) do
- if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("BodyColors") then
- v:Destroy()
- elseif v.Name == "FakeHeadM" then
- v.Ahoge.Mesh.Scale = Vector3.new()
- elseif v.Name == "Chest" then
- for a, b in pairs(v:children()) do
- if b.Name ~= "Tail" then
- b.Transparency = 1
- end
- end
- end
- end
- bdefc0 = CFrame.new(1,-1,0)*CFrame.Angles(math.rad(30),0,0)
- gdefc0 = CFrame.new(-1,-1,0)*CFrame.Angles(math.rad(130),0,0)
- local baton = Instance.new("Part",char)
- baton.Name = "Baton"
- baton.Size = Vector3.new(.2,.2,3.2)
- baton.BrickColor = BrickColor.new("Really black")
- baton.CanCollide = false
- Mesh = Instance.new("SpecialMesh")
- Mesh.Parent = baton
- Mesh.MeshId = "rbxassetid://11820238"
- Mesh.Scale = Vector3.new(1.5,1.5,1.5)
- local bweld = Instance.new("Weld",baton)
- bweld.Part0 = tors
- bweld.Part1 = baton
- bweld.C0 = bdefc0
- local gun = Instance.new("Part",char)
- gun.Name = "Gun"
- gun.Size = Vector3.new(.2,.2,.2)
- gun.BrickColor = BrickColor.new("Really black")
- gun.CanCollide = false
- Mesh = Instance.new("SpecialMesh")
- Mesh.Parent = gun
- Mesh.MeshId = "rbxassetid://72012879"
- Mesh.Scale = Vector3.new(2,2,2)
- local gweld = Instance.new("Weld",gun)
- gweld.Part0 = tors
- gweld.Part1 = gun
- gweld.C0 = gdefc0
- local mus = Instance.new("Sound",hed)
- mus.Name = "mus"
- mus.SoundId = "rbxassetid://345868687"
- mus.Looped = true
- mus.Volume = 2
- mus:Play()
- local flan = Instance.new("FlangeSoundEffect", mus)
- flan.Enabled = true
- flan.Mix = 3
- flan.Depth = 11
- local sh = Instance.new("Shirt",char)
- local pn = Instance.new("Pants",char)
- sh.ShirtTemplate = "rbxassetid://133284214"
- pn.PantsTemplate = "rbxassetid://15224239"
- moveleg = false
- local att1 = Instance.new("Attachment",baton)
- att1.Position = Vector3.new(-baton.Size.X/2,baton.Size.Y/2,baton.Size.Z/2)
- local att2 = Instance.new("Attachment",baton)
- att2.Position = Vector3.new(-baton.Size.X/2,-baton.Size.Y/2,-baton.Size.Z/2)
- local tr1 = Instance.new("Trail",baton)
- tr1.Color = ColorSequence.new(Color3.new(1,1,1))
- tr1.Transparency = NumberSequence.new(0,1)
- tr1.Lifetime = .5
- tr1.Enabled = false
- tr1.LightEmission = 1
- tr1.Attachment0 = att1
- tr1.Attachment1 = att2
- local att3 = Instance.new("Attachment",char["Right Leg"])
- att3.Position = Vector3.new(0,1,0)
- local att4 = Instance.new("Attachment",char["Right Leg"])
- att4.Position = Vector3.new(0,-1,0)
- local tr2 = Instance.new("Trail",char["Right Leg"])
- tr2.Color = ColorSequence.new(Color3.new(1,1,1))
- tr2.Transparency = NumberSequence.new(0,1)
- tr2.Lifetime = .5
- tr2.Enabled = false
- tr2.LightEmission = 1
- tr2.Attachment0 = att3
- tr2.Attachment1 = att4
- local slap = NewSound(baton, 536642316, 1, 6, false)
- function so(id,par,pit,vol)
- local sou = Instance.new("Sound", par or workspace)
- if par == char then
- sou.Parent = char.Torso
- end
- sou.Volume = vol
- sou.Pitch = pit or 1
- sou.SoundId = "rbxassetid://" .. id
- sou.PlayOnRemove = true
- sou:Destroy()
- end
- function chatfunc(text)
- coroutine.wrap(function()
- if char:FindFirstChild("TalkingBillBoard")~= nil then
- char:FindFirstChild("TalkingBillBoard"):destroy()
- end
- local naeeym2 = Instance.new("BillboardGui",char)
- naeeym2.Size = UDim2.new(0,100,0,40)
- naeeym2.StudsOffset = Vector3.new(0,3,0)
- naeeym2.Adornee = char.Head
- naeeym2.Name = "TalkingBillBoard"
- local tecks2 = Instance.new("TextBox",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.BorderSizePixel = 0
- tecks2.Text = ""
- tecks2.Font = "Fantasy"
- tecks2.FontSize = "Size24"
- tecks2.TextStrokeTransparency = 0
- tecks2.TextColor3 = Color3.new(1,1,1)
- tecks2.TextStrokeColor3 = Color3.new(0,0,0)
- tecks2.Size = UDim2.new(1,0,0.5,0)
- for i = 1,string.len(text),1 do
- tecks2.Text = string.sub(text,1,i)
- Swait()
- end
- Swait(30)
- for i = 1, 5 do
- Swait()
- tecks2.Position = tecks2.Position - UDim2.new(math.random(-1, 1)/15,0,.05,0)
- tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
- tecks2.TextTransparency = tecks2.TextTransparency + .2
- end
- naeeym2:Destroy()
- end)()
- end
- function mdmg(Part, Magnitude, HitType)
- for _, c in pairs(workspace:GetDescendants()) do
- local hum = c:FindFirstChildOfClass("Humanoid")
- if hum ~= nil then
- local head = c:FindFirstChild("UpperTorso") or c:FindFirstChild("Torso")
- if head ~= nil then
- local targ = head.Position - Part.Position
- local mag = targ.magnitude
- if mag <= Magnitude and c.Name ~= Player.Name and c:FindFirstChild("MagDmgd")==nil then
- if c.Name ~= char then
- local val = Instance.new("BoolValue",c)
- val.Name = "MagDmgd"
- local asd = Instance.new("ParticleEmitter",head)
- asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
- asd.LightEmission = .1
- asd.Size = NumberSequence.new(0.2)
- asd.Texture = "rbxassetid://771221224"
- aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 1)})
- bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
- asd.Transparency = bbb
- asd.Size = aaa
- asd.ZOffset = .9
- asd.Acceleration = Vector3.new(0, -5, 0)
- asd.LockedToPart = false
- asd.EmissionDirection = "Back"
- asd.Lifetime = NumberRange.new(1, 2)
- asd.Rate = 1000
- asd.Rotation = NumberRange.new(-100, 100)
- asd.RotSpeed = NumberRange.new(-100, 100)
- asd.Speed = NumberRange.new(6)
- asd.VelocitySpread = 10000
- asd.Enabled = false
- asd:Emit(20)
- game:service'Debris':AddItem(asd,3)
- --Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, .1, "rbxassetid://" .. HitSound, HitPitch)
- if HitType == "Blunt" then
- so(386946017,head,.95,3)
- game:service'Debris':AddItem(val,1)
- elseif HitType == "Shot" then
- so(144884872,head,.9,3)
- game:service'Debris':AddItem(val,.05)
- end
- local soaa = Instance.new("Sound",c.Head)
- soaa.Volume = .5
- local cho = math.random(1,5)
- if cho == 1 then
- soaa.SoundId = "rbxassetid://111896685"
- elseif cho == 2 then
- soaa.SoundId = "rbxassetid://535528169"
- elseif cho == 3 then
- soaa.SoundId = "rbxassetid://1080363252"
- elseif cho == 4 then
- soaa.SoundId = "rbxassetid://147758746"
- elseif cho == 5 then
- soaa.SoundId = "rbxassetid://626777433"
- soaa.Volume = .2
- soaa.TimePosition = 1
- end
- game:service'Debris':AddItem(soaa,6)
- soaa:Play()
- hum.BreakJointsOnDeath = false
- hum.PlatformStand = true
- head.Velocity = root.CFrame.lookVector*50
- head.RotVelocity = Vector3.new(10,0,0)
- chatfunc("let that do be warn!!!!")
- coroutine.wrap(function()
- Swait(45)
- c:BreakJoints() end)()
- else
- end
- end
- end
- end
- end
- end
- function smack()
- bweld.Part0 = ra
- bweld.C0 = CFrame.new(-.2,-2,.4)*CFrame.Angles(math.rad(90),0,math.rad(180))
- moveleg = true
- attack = true
- for i=0,1,.2 do
- Swait()
- clerp(char["Right Arm"].funnyattachment, nor3 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-35), Rad(0), Rad(180)+Rad(90)), 0.3)
- clerp(char["Left Arm"].funnyattachment, nor4 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-35), Rad(0), Rad(0)), 0.3)
- end
- tr1.Enabled = true
- slap:Play()
- for i = 1,11 do
- Swait()
- clerp(char["Right Arm"].funnyattachment, nor3 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(45), Rad(0), Rad(180)), 0.3)
- clerp(char["Left Arm"].funnyattachment, nor4 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-35), Rad(0), Rad(0)), 0.3)
- mdmg(baton,3,"Blunt")
- end
- tr1.Enabled = false
- moveleg = false
- Swait(5)
- attack = false
- bweld.Part0 = tors
- bweld.C0 = bdefc0
- end
- Effects = { }
- EffectModel = script
- local Create = function(Object, ...)
- local Obj = Instance.new(Object)
- for i,v in next,(...) do
- Obj[i] = v
- end
- return Obj
- end
- function RemoveOutlines(Part)
- end
- CFuncs = {
- ["Part"] = {
- Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part"){
- Parent = Parent,
- Reflectance = Reflectance,
- Transparency = Transparency,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new(tostring(BColor)),
- Name = Name,
- Size = Size,
- Material = Material,
- }
- RemoveOutlines(Part)
- return Part
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Mesh"] = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh){
- Parent = Part,
- Offset = OffSet,
- Scale = Scale,
- }
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end;
- };
- ["Weld"] = {
- Create = function(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld"){
- Parent = Parent,
- Part0 = Part0,
- Part1 = Part1,
- C0 = C0,
- C1 = C1,
- }
- return Weld
- end;
- };
- ["ParticleEmitter"] = {
- Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
- local fp = Create("ParticleEmitter"){
- Parent = Parent,
- Color = ColorSequence.new(Color1, Color2),
- LightEmission = LightEmission,
- Size = Size,
- Texture = Texture,
- Transparency = Transparency,
- ZOffset = ZOffset,
- Acceleration = Accel,
- Drag = Drag,
- LockedToPart = LockedToPart,
- VelocityInheritance = VelocityInheritance,
- EmissionDirection = EmissionDirection,
- Enabled = Enabled,
- Lifetime = LifeTime,
- Rate = Rate,
- Rotation = Rotation,
- RotSpeed = RotSpeed,
- Speed = Speed,
- VelocitySpread = VelocitySpread,
- }
- return fp
- end;
- };
- CreateTemplate = {
- };
- }
- Effects = {
- Block = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
- local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- if Type == 1 or Type == nil then
- table.insert(Effects, {
- prt,
- "Block1",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- elseif Type == 2 then
- table.insert(Effects, {
- prt,
- "Block2",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- end;
- };
- Cylinder = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end;
- };
- Head = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end;
- };
- Sphere = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end;
- };
- Elect = {
- Create = function(cff, x, y, z)
- local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1))
- prt.Anchored = true
- prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z))
- prt.CFrame = CFrame.new(prt.Position)
- game:GetService("Debris"):AddItem(prt, 2)
- local xval = math.random() / 2
- local yval = math.random() / 2
- local zval = math.random() / 2
- local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval))
- table.insert(Effects, {
- prt,
- "Elec",
- 0.1,
- x,
- y,
- z,
- xval,
- yval,
- zval
- })
- end;
- };
- Ring = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs["Part"].Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end;
- };
- Wave = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs["Part"].Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end;
- };
- Break = {
- Create = function(brickcolor, cframe, x1, y1, z1)
- local prt = CFuncs["Part"].Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
- prt.Anchored = true
- prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- local num = math.random(10, 50) / 1000
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Shatter",
- num,
- prt.CFrame,
- math.random() - math.random(),
- 0,
- math.random(50, 100) / 100
- })
- end;
- };
- Fire = {
- Create = function(brickcolor, cframe, x1, y1, z1, delay)
- local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Fire",
- delay,
- 1,
- 1,
- 1,
- msh
- })
- end;
- };
- FireWave = {
- Create = function(brickcolor, cframe, x1, y1, z1)
- local prt = CFuncs["Part"].Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- local d = Create("Decal"){
- Parent = prt,
- Texture = "rbxassetid://26356434",
- Face = "Top",
- }
- local d = Create("Decal"){
- Parent = prt,
- Texture = "rbxassetid://26356434",
- Face = "Bottom",
- }
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "FireWave",
- 1,
- 30,
- math.random(400, 600) / 100,
- msh
- })
- end;
- };
- Lightning = {
- Create = function(p0, p1, tym, ofs, col, th, tra, last)
- local magz = (p0 - p1).magnitude
- local curpos = p0
- local trz = {
- -ofs,
- ofs
- }
- for i = 1, tym do
- local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym))
- local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)])
- local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz
- li.Material = "Neon"
- if tym == i then
- local magz2 = (curpos - p1).magnitude
- li.Size = Vector3.new(th, th, magz2)
- li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2)
- table.insert(Effects, {
- li,
- "Disappear",
- last
- })
- else
- do
- do
- li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2)
- curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p
- game.Debris:AddItem(li, 10)
- table.insert(Effects, {
- li,
- "Disappear",
- last
- })
- end
- end
- end
- end
- end
- };
- EffectTemplate = {
- };
- }
- function bang()
- moveleg = true
- attack = true
- so(169799883,gun,1,1)
- for i=0,1,.2 do
- Swait()
- clerp(char["Right Arm"].funnyattachment, nor3 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-35), Rad(0), Rad(180)+Rad(90)), 0.3)
- clerp(char["Left Arm"].funnyattachment, nor4 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-35), Rad(0), Rad(0)), 0.3)
- end
- local ref = Instance.new("Part",script)
- ref.Size = Vector3.new(0,0,0)
- ref.Anchored = true
- ref.CanCollide = false
- ref.Transparency = 1
- gweld.Part0 = ra
- gweld.C0 = CFrame.new(.1,-1.5,-.2)*CFrame.Angles(math.rad(180),math.rad(0),math.rad(-40))
- slap:Play()
- for i = 1,11 do
- Swait()
- clerp(char["Right Arm"].funnyattachment, nor3 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-35), Rad(0), Rad(-122)), 0.3)
- clerp(char["Left Arm"].funnyattachment, nor4 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-35), Rad(0), Rad(122)), 0.3)
- end
- Swait(5)
- coroutine.wrap(function()
- for i = 1,7 do
- Swait()
- clerp(char["Right Arm"].funnyattachment, nor3 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-35), Rad(0), Rad(-135)), 0.3)
- clerp(char["Left Arm"].funnyattachment, nor4 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-35), Rad(0), Rad(135)), 0.3)
- end
- end)()
- ref.CFrame = mouse.Hit
- mdmg(ref,3,"Shot")
- local hitpt = Instance.new("Part",script)
- hitpt.Size = Vector3.new(0,0,.3)
- local bf = Instance.new("BodyVelocity",hitpt)
- bf.P = 10000
- bf.MaxForce = Vector3.new(bf.P,bf.P,bf.P)
- game:service'Debris':AddItem(bf,.1)
- hitpt.CFrame = gun.CFrame * CFrame.new(0,-.5,.5) * CFrame.Angles(math.rad(90),0,0)
- bf.Velocity = Vector3.new(0,5,0) + root.CFrame.rightVector*10
- local hitm = Instance.new("SpecialMesh",hitpt)
- hitm.MeshId = "http://www.roblox.com/asset/?id=94295100"
- hitm.TextureId = "http://www.roblox.com/asset/?id=94287792"
- hitm.Scale = Vector3.new(3,3,3.5)
- coroutine.wrap(function()
- Swait(120)
- for i = 0,1.1 do
- Swait()
- hitpt.Transparency = i
- end
- hitpt:Destroy()
- end)()
- local funny = Instance.new("Part", script)
- funny.BrickColor = BrickColor.new("Bright yellow")
- funny.Material = "Neon"
- funny.CFrame = gun.CFrame*CFrame.new(0,.6,.3)
- funny.CanCollide = false
- funny.Anchored = true
- funny.Size = Vector3.new(0.1, 0.1, 0.1)
- coroutine.wrap(function()
- Swait(0)
- for i = 1,25 do
- Swait()
- funny.Transparency = funny.Transparency + 0.1
- funny.Size = funny.Size:lerp(Vector3.new(1, 1, 1), 0.1)
- funny.Orientation = funny.Orientation:lerp(Vector3.new(math.random(-180, 180),math.random(-180, 180),math.random(-180, 180)), 0.15)
- end
- funny:Destroy()
- end)()
- moveleg = false
- attack = false
- gweld.Part0 = tors
- gweld.C0 = gdefc0
- end
- mouse.Button1Down:connect(function()
- if attack == false then
- smack()
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == "z" and attack == false then
- bang()
- end
- end)
- he = 1
- a = Instance.new("NumberValue", char)
- a.Name = "AValueThatCouldBeImportant"
- a.Value = he
- if hum.Jump == true then
- if he == 1 then
- he = 0
- local b = Instance.new("BodyVelocity", tors)
- b.MaxForce = Vector3.new(0, math.huge, 0)
- b.Velocity = Vector3.new(0, hum.JumpPower, 0)
- Debris:AddItem(b, 0.1)
- end
- end
- NLS([[
- local plr = game:GetService("Players").LocalPlayer
- local char = script.Parent
- local a = char.AValueThatCouldBeImportant
- local mouse = plr:GetMouse()
- local hum = char.Humanoid
- mouse.KeyDown:connect(function(key)
- if key == Enum.KeyCode.Space then
- if a.Value == 1 then
- a.Value = 0
- local b = Instance.new("BodyVelocity", tors)
- b.MaxForce = Vector3.new(0, math.huge, 0)
- b.Velocity = Vector3.new(0, hum.JumpPower, 0)
- Debris:AddItem(b, 0.1)
- end
- end
- end)
- ]], char)
- while true do
- Swait()
- a.Value = he
- sine = sine + 1
- local TiltVelocity = CFrame.new(root.CFrame:vectorToObjectSpace(root.Velocity/1.6))
- local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
- local WALKSPEEDVALUE = 8 / (sped / 16)
- torsverticalvel = root.Velocity.y
- hitfloor = RayCast(root.Position, (CFrame.new(root.Position, root.Position + Vector3.new(0, -1, 0))).lookVector, tors.Size.y+2+hum.HipHeight, char)
- if TORSOVELOCITY < 1 and hitfloor ~= nil then
- anim = "Idle"
- he = 1
- if attack == false and moveleg == false then
- clerp(char["Right Leg"].funnyattachment, nor1 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
- clerp(char["Left Leg"].funnyattachment, nor2 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
- clerp(char["Right Arm"].funnyattachment, nor3 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(65)), 0.3)
- clerp(char["Left Arm"].funnyattachment, nor4 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-65)), 0.3)
- elseif attack == true and moveleg == true then
- clerp(char["Right Leg"].funnyattachment, nor1 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
- clerp(char["Left Leg"].funnyattachment, nor2 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
- end
- elseif TORSOVELOCITY > 1 and hitfloor ~= nil then
- anim = "Walk"
- he = 1
- if attack == false and moveleg == false then
- clerp(char["Right Leg"].funnyattachment, nor1 * CFrame.new(0 * Cos(sine / 6), 0, 0) * CFrame.Angles(Rad(-((TiltVelocity.x)*9.5) * Cos(sine / 5)), Rad(0), Rad(-((TiltVelocity.z)*9.5) * Cos(sine / 5))), 0.3)
- clerp(char["Left Leg"].funnyattachment, nor1 * CFrame.new(0 * Cos(sine / 6), 0, 0) * CFrame.Angles(Rad(-((TiltVelocity.x)*9.5) * Cos(sine / 5)), Rad(0), Rad(-((TiltVelocity.z)*9.5) * Cos(sine / 5))), 0.3)
- clerp(char["Right Arm"].funnyattachment, nor3 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-35), Rad(0), Rad(65)), 0.3)
- clerp(char["Left Arm"].funnyattachment, nor4 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-35), Rad(0), Rad(-65)), 0.3)
- elseif attack == true and moveleg == true then
- clerp(char["Right Leg"].funnyattachment, nor1 * CFrame.new(0 * Cos(sine / 6), 0, 0) * CFrame.Angles(Rad(-((TiltVelocity.x)*9.5) * Cos(sine / 5)), Rad(0), Rad(-((TiltVelocity.z)*9.5) * Cos(sine / 5))), 0.3)
- clerp(char["Left Leg"].funnyattachment, nor1 * CFrame.new(0 * Cos(sine / 6), 0, 0) * CFrame.Angles(Rad(-((TiltVelocity.x)*9.5) * Cos(sine / 5)), Rad(0), Rad(-((TiltVelocity.z)*9.5) * Cos(sine / 5))), 0.3)
- end
- elseif torsverticalvel > 0.5 and hitfloor == nil then
- anim = "Jump"
- he = 0
- if he == 1 then
- he = 0
- local b = Instance.new("BodyVelocity", tors)
- b.MaxForce = Vector3.new(0, math.huge, 0)
- b.Velocity = Vector3.new(0, hum.JumpPower, 0)
- Debris:AddItem(b, 0.1)
- end
- if attack == false and moveleg == false then
- clerp(char["Right Leg"].funnyattachment, nor1 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
- clerp(char["Left Leg"].funnyattachment, nor2 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
- clerp(char["Right Arm"].funnyattachment, nor3 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(65)), 0.3)
- clerp(char["Left Arm"].funnyattachment, nor4 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-65)), 0.3)
- elseif attack == true and moveleg == true then
- clerp(char["Right Leg"].funnyattachment, nor1 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
- clerp(char["Left Leg"].funnyattachment, nor2 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
- end
- elseif torsverticalvel < 0.5 and hitfloor == nil then
- anim = "Fall"
- he = 1
- if attack == false and moveleg == false then
- clerp(char["Right Leg"].funnyattachment, nor1 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
- clerp(char["Left Leg"].funnyattachment, nor2 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
- clerp(char["Right Arm"].funnyattachment, nor3 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(65)), 0.3)
- clerp(char["Left Arm"].funnyattachment, nor4 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(-65)), 0.3)
- elseif attack == true and moveleg == true then
- clerp(char["Right Leg"].funnyattachment, nor1 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
- clerp(char["Left Leg"].funnyattachment, nor2 * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(0)), 0.3)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement