Pastebin
API
tools
faq
paste
Login
Sign up
Please fix the following errors:
New Paste
Syntax Highlighting
--https://github.com/Mokiros/roblox-FE-compatibility if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end local Player,Mouse,mouse,UserInputService,ContextActionService = owner local RealPlayer = Player do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"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("UserInput_Event")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 --[[GIGA BLOX (boss battle)]]-- --[[ Script made and owned by: WafflesAreVeryGood do not steal my scripts do not take credit for my scripts Move List r = Pumpkin throw C e = Pumpkin roll C t = lightning strikes C g = Rage C z = evil laugh C --]] local plr = game.Players.LocalPlayer local char = plr.Character local mouse = plr:GetMouse() local torso = char.Torso local animpose = "Idle" local attacking = false local cananim = true local rage = false local shield = nil local sprint = false local canrage = true local crits = false local legs = false local scale = 2 local powers = false local bc = char:WaitForChild("Body Colors") local multiplier = 1 local lac = char["Body Colors"].LeftArmColor local rac = char["Body Colors"].RightArmColor local rlc = char["Body Colors"].RightArmColor local llc = char["Body Colors"].LeftLegColor local hc = char["Body Colors"].HeadColor local tc = char["Body Colors"].TorsoColor local humanoid = char:FindFirstChildOfClass("Humanoid") humanoid.MaxHealth = 10000 wait() humanoid.Health = 10000 local huge = Vector3.new(math.huge,math.huge,math.huge) local mobs = Instance.new("Sound", char.Torso) mobs.SoundId = "rbxassetid://316661084" mobs.Looped = true mobs.Volume = 5 mobs:Play() wait(0.5) --[[local scale = 2 local joints = {torso["Right Shoulder"], torso["Left Shoulder"], torso["Right Hip"], torso["Left Hip"], torso.Neck, char.HumanoidRootPart.RootJoint} local j = {} for i,v in pairs(char:children()) do if v:IsA("Accoutrement") then v.Handle.Mesh.Scale = v.Handle.Mesh.Scale * scale local w = v.AttachmentPoint if w then local c0 = {w:components()} for i = 1, 3 do c0[i] = c0[i]*scale end v.AttachmentPoint = CFrame.new(unpack(c0)) v.AttachmentPoint = (v.AttachmentPoint + Vector3.new(0, 1, 0) * -(0.5 * (scale - 1))) end end end for i,v in pairs(joints) do local insert = { Name = v.Name; Part0 = v.Part0; Part1 = v.Part1; C0 = v.C0; C1 = v.C1; Parent = v.Parent; } table.insert(j, insert) end local parts = {char["Right Arm"], char["Left Arm"], char["Right Leg"], char["Left Leg"], char.Torso, char.Head, char.HumanoidRootPart} for i,v in pairs(parts) do v.Anchored = true v.FormFactor = "Custom" v.Size = (v.Size*scale) v.Anchored = false end for i,joint in pairs(joints) do joint:Destroy() end for i,v in pairs(j) do print(j.Name) local c0 = {v.C0:components()} local c1 = {v.C1:components()} for i = 1, 3 do c0[i] = c0[i]*scale c1[i] = c1[i]*scale end v.C0 = CFrame.new(unpack(c0)) v.C1 = CFrame.new(unpack(c1)) local m = Instance.new("Motor6D") for q,e in pairs(v) do m[q] = e end end for i,v in pairs(char:children()) do if v:IsA("Accoutrement") then v.Parent = nil v.Parent = char end end char.Humanoid.WalkSpeed = 16*scale char.Humanoid.MaxHealth = 100*scale char.Humanoid.JumpPower = 50*scale]] RbxUtility = LoadLibrary("RbxUtility") Create = RbxUtility.Create local Players = game:GetService('Players') function SetProperties(Table) local Object = Table.Object local Properties = Table.Properties if not Object or not Properties then return end for i, v in pairs(Properties) do pcall(function() Object[i] = v end) end return Object end function ScaleCharacter(Character, Scale, Permissions)--i did not make this part local Permissions = (Permissions or {}) if not Character --[[or not Character.Parent]] then return end local Humanoid = Character:FindFirstChild("Humanoid") --[[if not Humanoid then return end]] if Humanoid and Humanoid.RigType == Enum.HumanoidRigType.R15 then Humanoid.HipHeight = Humanoid.HipHeight * Scale end local Player = Players:GetPlayerFromCharacter(Character) if not Player and not Permissions.ResizeModels then return end local Parts = {} local Joints = {} local Meshes = {} local Hats = {} local Tools = {} local ToolsResized = {} local HatsResized = {} local Connections = {} local function ScaleObjects(BaseParent, BaseScale) local Parts = {} local Joints = {} local Meshes = {} local Hats = {} local Tools = {} local function GetScaleObjects(Parent) local Objects = Parent:GetChildren() if Parent == BaseParent then table.insert(Objects, BaseParent) end for i, v in pairs(Objects) do if v:IsA("JointInstance") then table.insert(Joints, { Joint = v:Clone(), Part0 = v.Part0, Part1 = v.Part1, Parent = v.Parent }) elseif v:IsA("BasePart") then table.insert(Parts, v) elseif v:IsA("Accoutrement") then table.insert(Hats, v) -- v.Parent = nil elseif v:IsA("Tool") then table.insert(Tools, v) -- v.Parent = nil --Causes execution scripts again, which is bad. elseif v:IsA("DataModelMesh") then table.insert(Meshes, v) end if v ~= BaseParent then GetScaleObjects(v) end end end GetScaleObjects(BaseParent) for i, v in pairs(Meshes) do if v:IsA("FileMesh") then if v:IsA("SpecialMesh") and v.MeshType == Enum.MeshType.Head then v.Scale = (Vector3.new(1, 1, 1) * 1.25) else v.Scale = (v.Scale * BaseScale) end end end for i, v in pairs(Parts) do pcall(function() v.FormFactor = Enum.FormFactor.Custom end) v.Size = (v.Size * BaseScale) end for i, v in pairs(Hats) do local PX, PY, PZ, R00, R01, R02, R10, R11, R12, R20, R21, R22 = v.AttachmentPoint:components() v.AttachmentPoint = CFrame.new((PX * BaseScale), (PY * BaseScale), (PZ * BaseScale), R00, R01, R02, R10, R11, R12, R20, R21, R22) v.AttachmentPoint = (v.AttachmentPoint + Vector3.new(0, 1, 0) * -(0.5 * (BaseScale - 1))) --v.Parent = Character end for i, v in pairs(Tools) do local PX, PY, PZ, R00, R01, R02, R10, R11, R12, R20, R21, R22 = v.Grip:components() v.Grip = CFrame.new((PX * BaseScale), (PY * BaseScale), (PZ * BaseScale), R00, R01, R02, R10, R11, R12, R20, R21, R22) v.Grip = (v.Grip + v.Grip.lookVector * -(BaseScale - 1)) if Humanoid then --Humanoid:EquipTool(v) end end for i, v in pairs(Joints) do local C0PX, C0PY, C0PZ, C0R00, C0R01, C0R02, C0R10, C0R11, C0R12, C0R20, C0R21, C0R22 = v.Joint.C0:components() local C1PX, C1PY, C1PZ, C1R00, C1R01, C1R02, C1R10, C1R11, C1R12, C1R20, C1R21, C1R22 = v.Joint.C1:components() local NewJoint = SetProperties({Object = v.Joint:Clone(), Properties = { Part0 = v.Part0, Part1 = v.Part1, C0 = CFrame.new((C0PX * BaseScale), (C0PY * BaseScale), (C0PZ * BaseScale), C0R00, C0R01, C0R02, C0R10, C0R11, C0R12, C0R20, C0R21, C0R22), C1 = CFrame.new((C1PX * BaseScale), (C1PY * BaseScale), (C1PZ * BaseScale), C1R00, C1R01, C1R02, C1R10, C1R11, C1R12, C1R20, C1R21, C1R22), Parent = v.Parent, }}) for ii, vv in pairs(v.Parent:GetChildren()) do if vv:IsA("JointInstance") and vv.Part0 == v.Part0 and vv.Part1 == v.Part1 and vv ~= NewJoint then vv:Destroy() end end end return { Tools = Tools, Hats = Hats } end local Objects = ScaleObjects(Character, Scale) for i, v in pairs(Objects.Tools) do table.insert(ToolsResized, {Object = v, Connections = {}}) end for i, v in pairs(Objects.Hats) do table.insert(HatsResized, {Object = v, Connections = {}}) end if Permissions.ScaleTools then Connections.ToolAdded = Character.ChildAdded:connect(function(Child) if Child:IsA("Tool") then local TableInstance = nil for i, v in pairs(ToolsResized) do if v and v.Object and v.Object == Child then TableInstance = v end end if not TableInstance then table.insert(ToolsResized, {Object = Child, Connections = {}}) ScaleObjects(Child, Scale) end end end) Connections.ToolRemoved = Character.ChildRemoved:connect(function(Child) if Child:IsA("Tool") then local TableInstance = nil for i, v in pairs(ToolsResized) do if v and v.Object and v.Object == Child then TableInstance = v end end if not TableInstance then return end for i, v in pairs(ToolsResized) do if v.Object == Child then for ii, vv in pairs(v.Connections) do if vv then vv:disconnect() end end table.remove(ToolsResized, i) end end ScaleObjects(Child, (1 / Scale)) end end) end if Permissions.ScaleHats then Connections.HatAdded = Character.ChildAdded:connect(function(Child) if Child:IsA("Accoutrement") then local TableInstance = nil for i, v in pairs(HatsResized) do if v and v.Object and v.Object == Child then TableInstance = v end end if not TableInstance then table.insert(HatsResized, {Object = Child, Connections = {}}) ScaleObjects(Child, Scale) end end end) Connections.HatRemoved = Character.ChildRemoved:connect(function(Child) if Child:IsA("Accoutrement") then local TableInstance = nil for i, v in pairs(HatsResized) do if v and v.Object and v.Object == Child then TableInstance = v end end if not TableInstance then return end for i, v in pairs(HatsResized) do if v.Object == Child then for ii, vv in pairs(v.Connections) do if vv then vv:disconnect() end end table.remove(HatsResized, i) end end ScaleObjects(Child, (1 / Scale)) end end) end local Head = Character:FindFirstChild("Head") local Torso = Character:FindFirstChild("Torso") or Character:FindFirstChild("UpperTorso") local StateChanged = Create("BoolValue"){ Value = true, } Delay(0.1, function() StateChanged.Value = false end) if Head and Torso then if Humanoid then Humanoid.WalkSpeed = (16 * Scale) Humanoid.CameraOffset = Vector3.new(0, (Head.Position.Y - Torso.Position.Y - 0.75), 0) end if not Permissions.MaintainCFrame then Torso.CFrame = Torso.CFrame + Vector3.new(0, Torso.Size.Y, 0) end end local ScaleBack = Permissions.ScaleBack if ScaleBack and type(ScaleBack) == "table" and tonumber(ScaleBack.Delay) then Delay(ScaleBack.Delay, function() for i, v in pairs(Connections) do if v then v:disconnect() end end for i, v in pairs({ToolsResized, HatsResized}) do for ii, vv in pairs(v) do for iii, vvv in pairs(vv.Connections) do if vvv then vvv:disconnect() end end end end local PresetPermissions = { ScaleBack = false, ScaleHats = false, ScaleTools = false } if Character --[[and Character.Parent]] then for i, v in pairs(PresetPermissions) do Permissions[i] = v end ScaleCharacter(Character, (1 / Scale), Permissions) end StateChanged.Value = true end) end return { Connections = Connections, StateChanged = StateChanged } end ScaleCharacter(plr.Character, scale)--the rest is mine VVVV local rs = torso["Right Shoulder"] local ls = torso["Left Shoulder"] local rh = torso["Right Hip"] local lh = torso["Left Hip"] local rj = char.HumanoidRootPart.RootJoint local neck = torso.Neck char.Humanoid.Health = char.Humanoid.MaxHealth if char:FindFirstChild("Animate") then char.Animate:Destroy() end for i,track in pairs(humanoid:GetPlayingAnimationTracks()) do track:Stop() end local shirt = char:FindFirstChildOfClass("Shirt") if shirt then shirt.ShirtTemplate = "rbxassetid://102716091" end local pants = char:FindFirstChildOfClass("Pants") if pants then pants.PantsTemplate = "rbxassetid://102712920" end local bpz = {"Right Arm", "Left Arm", "Right Leg", "Left Leg", "Head", "Torso"} for i,v in pairs(bpz) do char[v].BrickColor = BrickColor.new("Pastel brown") end for i,v in pairs(char:children()) do if v:IsA("Accessory") then v:Destroy() end end -- thanks dog --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")) Model0 = Instance.new("Model") Part1 = Instance.new("Part") SpecialMesh2 = Instance.new("SpecialMesh") ParticleEmitter3 = Instance.new("ParticleEmitter") Attachment4 = Instance.new("Attachment") Attachment5 = Instance.new("Attachment") Part6 = Instance.new("Part") SpecialMesh7 = Instance.new("SpecialMesh") Part8 = Instance.new("Part") SpecialMesh9 = Instance.new("SpecialMesh") Part10 = Instance.new("Part") SpecialMesh11 = Instance.new("SpecialMesh") Part12 = Instance.new("Part") SpecialMesh13 = Instance.new("SpecialMesh") Model0.Name = "Pumpkin" Model0.Parent = mas Part1.Name = "Handle" Part1.Parent = Model0 Part1.Anchored = true Part1.CanCollide = false Part1.FormFactor = Enum.FormFactor.Symmetric Part1.Size = Vector3.new(2, 2, 2) Part1.CFrame = CFrame.new(113.089798, 1.00000405, -4.53332996, 1, 0, 0, 0, 1, 0, 0, 0, 1) Part1.BottomSurface = Enum.SurfaceType.Smooth Part1.TopSurface = Enum.SurfaceType.Smooth Part1.Position = Vector3.new(113.089798, 1.00000405, -4.53332996) SpecialMesh2.Parent = Part1 SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=1484150481" SpecialMesh2.Scale = Vector3.new(2, 2, 2) SpecialMesh2.TextureId = "rbxassetid://1484150485" SpecialMesh2.VertexColor = Vector3.new(0.300000012, 0.300000012, 0.300000012) SpecialMesh2.MeshType = Enum.MeshType.FileMesh SpecialMesh2.Scale = Vector3.new(2, 2, 2) ParticleEmitter3.Parent = Part1 ParticleEmitter3.Transparency = NumberSequence.new(0.5,0.5) ParticleEmitter3.Rotation = NumberRange.new(0, 360) ParticleEmitter3.Size = NumberSequence.new(0.43749988079071,0) ParticleEmitter3.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0)) ParticleEmitter3.LightEmission = 0.5 ParticleEmitter3.Texture = "rbxassetid://3319251" ParticleEmitter3.Lifetime = NumberRange.new(1, 1) ParticleEmitter3.Rate = 200 ParticleEmitter3.RotSpeed = NumberRange.new(90, 90) ParticleEmitter3.Color = ColorSequence.new(Color3.new(1, 0.666667, 0),Color3.new(1, 0.666667, 0)) Attachment4.Name = "AT2" Attachment4.Parent = Part1 Attachment4.CFrame = CFrame.new(-1.60000002, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) Attachment4.Position = Vector3.new(-1.60000002, 0, 0) Attachment5.Name = "AT1" Attachment5.Parent = Part1 Attachment5.CFrame = CFrame.new(1.60000002, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) Attachment5.Position = Vector3.new(1.60000002, 0, 0) Part6.Parent = Model0 Part6.Material = Enum.Material.Neon Part6.BrickColor = BrickColor.new("CGA brown") Part6.Anchored = true Part6.Size = Vector3.new(2, 1, 1) Part6.CFrame = CFrame.new(113.089798, 1.50000405, -5.53333187, 1, 0, 0, 0, 1, 0, 0, 0, 1) Part6.Color = Color3.new(0.666667, 0.333333, 0) Part6.Position = Vector3.new(113.089798, 1.50000405, -5.53333187) Part6.Color = Color3.new(0.666667, 0.333333, 0) SpecialMesh7.Parent = Part6 SpecialMesh7.MeshType = Enum.MeshType.Sphere Part8.Parent = Model0 Part8.Material = Enum.Material.Neon Part8.BrickColor = BrickColor.new("CGA brown") Part8.Anchored = true Part8.Size = Vector3.new(2, 1.5, 1.10000002) Part8.CFrame = CFrame.new(113.089798, 0.750004053, -5.58331966, 1, 0, 0, 0, 1, 0, 0, 0, 1) Part8.Color = Color3.new(0.666667, 0.333333, 0) Part8.Position = Vector3.new(113.089798, 0.750004053, -5.58331966) Part8.Color = Color3.new(0.666667, 0.333333, 0) SpecialMesh9.Parent = Part8 SpecialMesh9.MeshType = Enum.MeshType.Sphere Part10.Parent = Model0 Part10.Material = Enum.Material.Neon Part10.BrickColor = BrickColor.new("CGA brown") Part10.Rotation = Vector3.new(0, -41, 0) Part10.Anchored = true Part10.Size = Vector3.new(1.5, 1.5, 1) Part10.CFrame = CFrame.new(113.811264, 0.750004053, -5.45703793, 0.754709542, 0, -0.656059086, 0, 1, 0, 0.656059086, 0, 0.754709542) Part10.Color = Color3.new(0.666667, 0.333333, 0) Part10.Position = Vector3.new(113.811264, 0.750004053, -5.45703793) Part10.Orientation = Vector3.new(0, -41, 0) Part10.Color = Color3.new(0.666667, 0.333333, 0) SpecialMesh11.Parent = Part10 SpecialMesh11.MeshType = Enum.MeshType.Sphere Part12.Parent = Model0 Part12.Material = Enum.Material.Neon Part12.BrickColor = BrickColor.new("CGA brown") Part12.Rotation = Vector3.new(0, 41, 0) Part12.Anchored = true Part12.Size = Vector3.new(1.5, 1.5, 1) Part12.CFrame = CFrame.new(112.411301, 0.750004053, -5.45703793, 0.754709601, 0, 0.656059027, 0, 1, 0, -0.656059027, 0, 0.754709601) Part12.Color = Color3.new(0.666667, 0.333333, 0) Part12.Position = Vector3.new(112.411301, 0.750004053, -5.45703793) Part12.Orientation = Vector3.new(0, 41, 0) Part12.Color = Color3.new(0.666667, 0.333333, 0) SpecialMesh13.Parent = Part12 SpecialMesh13.MeshType = Enum.MeshType.Sphere for i,v in pairs(mas:GetChildren()) do v.Parent = game:GetService("Players").LocalPlayer.Character pcall(function() v:MakeJoints() end) end mas:Destroy() for i,v in pairs(cors) do spawn(function() pcall(v) end) end local pumpkinhead = char.Pumpkin local handle = pumpkinhead.Handle local at1 = Instance.new("Attachment") at1.Position = Vector3.new(1.6,0,0) at1.Parent = handle local at2 = Instance.new("Attachment") at2.Position = Vector3.new(-1.6,0,0) at2.Parent = handle local t = Instance.new("Trail") t.Color = ColorSequence.new({ColorSequenceKeypoint.new(0,Color3.new(255/255,170/255,0)),ColorSequenceKeypoint.new(0.78,Color3.new(255/255,170/255,0)),ColorSequenceKeypoint.new(1,Color3.new(0,0,0))}) t.FaceCamera = true t.LightEmission = 0.5 t.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)}) t.Attachment0 = at1 t.Attachment1 = at2 t.Lifetime = 1 t.MinLength = 0.1 t.Parent = handle local obj = pumpkinhead local scr = "" local n = "\n" local num = 0 local parts = {} local last a = function(b) for i,v in pairs(b:children()) do if v.Name ~= ("Handle") and v:IsA("BasePart") then if not last then last = obj.Handle end local w = Instance.new("Weld") w.Part0 = v w.Part1 = last w.C0 = v.CFrame:inverse() w.C1 = last.CFrame:inverse() w.Parent = v v.Anchored = false last = v table.insert(parts, v) if v.Name ~= "Blade" then num = num + 1 v.Name = "Part"..num end end a(v) end end a(obj) handle.Anchored = false for i,v in pairs(parts) do v.Anchored = false end local hatw = Instance.new("Weld") hatw.Part0 = char.Head hatw.Part1 = handle hatw.Parent = char.Head char.Head.Transparency = 1 if char.Head:FindFirstChild("face") then char.Head.face.Transparency = 1 end function legsonly() spawn(function() for i = 0, 10 do wait(0.001) if attacking then break end end if not attacking then legs = false end end) end function swait(t) if t == nil or t == 0 then game:service('RunService').Stepped:wait(0) return true else for i = 0, t do game:service('RunService').Stepped:wait(0) end return true end end function hurt(hit, dmg) if hit.Parent then if hit.Parent:IsA("LocalScript") then hit.Parent:Destroy() end local hum = hit.Parent:FindFirstChildOfClass("Humanoid") if hum then if hum.Parent ~= char then if dmg == "Kill" then hit.Parent:BreakJoints() return true else if math.random(0, 100) == 50 and crits then hum.Health = hum.Health - dmg*multiplier*2.5 else hum.Health = hum.Health -dmg*multiplier end return true end end end end end function soundeffect(id, volume, speed, parent, forcewait) if forcewait then local s = parent:FindFirstChildOfClass("Sound") if not s then s = Instance.new("Sound") else if s.SoundId ~= id then s = Instance.new("Sound") end end s.SoundId = id s.Volume = volume s.PlaybackSpeed = speed s.Parent = parent s:Play() repeat wait() until not s.Playing s:Destroy() else spawn(function() local s = parent:FindFirstChildOfClass("Sound") if not s then s = Instance.new("Sound") else if s.SoundId ~= id then s = Instance.new("Sound") end end s.SoundId = id s.Volume = volume s.PlaybackSpeed = speed s.Parent = parent s:Play() repeat wait() until not s.Playing s:Destroy() end) end end function gethum(obj) if obj.Parent then if obj.Parent:FindFirstChild("Humanoid") then if obj.Parent.Name ~= plr.Name then return obj.Parent:FindFirstChildOfClass("Humanoid") end end end end function pushback(toucher, hit, knockback, stuns) local bv = Instance.new("BodyVelocity") bv.MaxForce = huge bv.Velocity = CFrame.new(toucher.Position, hit.Position).lookVector*knockback bv.Parent = hit if gethum(hit) then gethum(hit).PlatformStand = true end game.Debris:AddItem(bv, 0.1) end function smooth(obj) local sides = {"Left", "Right", "Top", "Bottom", "Front", "Back"} for i,v in pairs(sides) do obj[v.."Surface"] = "SmoothNoOutlines" end end function fade(obj, dest, grow) spawn(function() local oldcf = obj.CFrame for i = 0, 10 do if grow then obj.Size = obj.Size +Vector3.new(1,1,1) obj.CFrame = oldcf end obj.Transparency = obj.Transparency +0.1 swait() end if dest then obj:Destroy() end end) end function replacejoint(name) local j = torso:FindFirstChild(name) if not j then j = char.HumanoidRootPart:FindFirstChild(name) end if j then if true then local new = Instance.new("Weld") new.Part0 = j.Part0 j.Part0 = nil new.Name = j.Name.." Replacement" new.Parent = j.Parent new.Part1 = j.Part1 new.C0 = j.C0 new.C1 = j.C1 return new end end end function lightning(start,finish,segments, color, thickness, sound) local full = (start.p-finish.p).magnitude local lastpart local lastscale local direction = CFrame.new(finish.p,start.p).lookVector local model model = Instance.new("Model") for i = 1, segments do local p = Instance.new("Part") p.CFrame = start if not lastscale then lastscale = 0.5 end if not lastpart then lastpart = p end local startp = lastpart.CFrame*CFrame.new(0,0,-lastscale/2) local p = Instance.new("Part", model) p.Name = "segment"..i p.BrickColor = color local endpos if i == segments then endpos = finish else if lastpart == char.Torso then endpos = CFrame.new(lastpart.CFrame.p,lastpart.CFrame.p+direction) *CFrame.new(math.random(-thickness*2,thickness*2),math.random(-thickness*2,thickness*2),full/segments) else endpos = CFrame.new(lastpart.CFrame.p,lastpart.CFrame.p+direction) *CFrame.new(math.random(-thickness*2,thickness*2),math.random(-thickness*2,thickness*2),full/segments) end --[[local p = Instance.new("Part", model) p.Anchored = true p.Size = Vector3.new(thickness,thickness,1) p.CanCollide = false p.CFrame = endpos]] end local mag = (startp.p-endpos.p).magnitude p.Anchored = true p.CanCollide = false local m = Instance.new("SpecialMesh", p) m.MeshType = "Brick" for i,v in pairs({"Right", "Left", "Top", "Bottom", "Front", "Back"}) do p[v.."Surface"] = "SmoothNoOutlines" end p.Size = Vector3.new(thickness,thickness,mag) p.CFrame = CFrame.new(startp.p, endpos.p) *CFrame.new(0,0,-mag/2) lastscale = mag lastpart = p end model.Parent = char spawn(function() local s if sound then s = Instance.new("Sound", lastpart) s.Volume = 5 s.SoundId = "rbxassetid://224339201" s.PlayOnRemove = true s:Play() end for i = 1, 10*2 do for i,v in pairs(model:children()) do v.Transparency = v.Transparency +0.1/2 end wait() end if sound then s:Destroy() end model:Destroy() end) return model end function removejoint(name) local j = torso:FindFirstChild(name.." Replacement") if not j then j = char.HumanoidRootPart:FindFirstChild(name.." Replacement") end if j then local p0 = j.Part0 local c0 = j.C0 local c1 = j.C1 j:Destroy() local new = p0:FindFirstChild(name) local ac0 = new.C0 local ac1 = new.C1 new.Part0 = p0 new.C0 = c0 new.C1 = c1 spawn(function() for i = 0, 1, 0.1 do new.C0 = new.C0:Lerp(ac0, 0.7) new.C1 = new.C1:lerp(ac1, 0.7) wait() end end) end end function fixalljoints() for i,v in pairs({"Right Shoulder", "Left Shoulder", "Right Hip", "Left Hip", "Neck", "RootJoint"}) do removejoint(v) end end function getnewjoints() local rs = replacejoint("Right Shoulder") local ls = replacejoint("Left Shoulder") local rh = replacejoint("Right Hip") local lh = replacejoint("Left Hip") local neck = replacejoint("Neck") local rj = replacejoint("RootJoint") return rs,ls,rh,lh,neck,rj end function getreplacec0s() local rs = torso["Right Shoulder"] local ls = torso["Left Shoulder"] local rh = torso["Right Hip"] local lh = torso["Left Hip"] local rj = char.HumanoidRootPart.RootJoint local neck = torso.Neck return rs.C0,ls.C0,rh.C0,lh.C0,neck.C0,rj.C0 end local jumped = false local candj = true local docon = false local freefall = false local cone humanoid.StateChanged:connect(function(_,new) if new == Enum.HumanoidStateType.Freefall then freefall = true else freefall = false end end) cone = humanoid.Changed:connect(function(prop) swait(3) if not humanoid.Jump and docon and prop == "Jump" then candj = true jumped = false docon = false end end) mouse.KeyDown:connect(function(key) if key == "r" and not attacking then local rs,ls,rh,lh,neck,rj = getnewjoints() attacking = true local p = pumpkinhead:Clone() local phand = p.Handle phand.AT1.Position = Vector3.new(0.5,0,0) phand.AT2.Position = Vector3.new(-0.5,0,0) phand.Mesh.Scale = Vector3.new(0,0,0) local w = Instance.new("Weld") w.Part0 = char["Right Arm"] w.Part1 = phand w.C1 = CFrame.new(0,1,0) w.Parent = char["Right Arm"] p.Parent = char for i = 0, 2, 0.1 do phand.Mesh.Scale = phand.Mesh.Scale:Lerp(Vector3.new(2,2,2), 0.2) ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0*scale, 0.305212736, 0.156434491, -0.9393484, -0.048340939, 0.987688541, 0.148778111, 0.951057434, 0, 0.309017241), 0.2) rs.C0 = rs.C0:Lerp(CFrame.new(1*scale, 0.5*scale, 0*scale, 0.00729153398, -0.104904592, 0.994455755, -0.104274213, -0.989144921, -0.103580341, 0.994524956, -0.102940485, -0.0181511845), 0.2) lh.C0 = lh.C0:Lerp(CFrame.new(-1*scale, -1*scale, 0, -0.0270539615, 0.100966766, -0.994522035, -0.257401317, 0.960634768, 0.104528472, 0.96592617, 0.258819103, 0), 0.2) rh.C0 = rh.C0:Lerp(CFrame.new(1*scale, -1*scale, 0, 0.00911026634, -0.0866784006, 0.996195018, -0.10413079, 0.990738153, 0.0871557668, -0.994522691, -0.104528546, 0), 0.2) neck.C0 = neck.C0:Lerp(CFrame.new(0, 1*scale, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2) rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.970296144, -0.241921961, 0, 0, 0, 1, -0.241921961, 0.970296144, 0), 0.2) swait() end phand.Mesh.Scale = Vector3.new(2,2,2) swait(15) for i = 0, 2, 0.1 do ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0, -0.0172375813, 0.156434491, -0.987539232, 0.0027301528, 0.987688541, 0.156410769, 0.999848783, 0, -0.0174524169), 0.2) rs.C0 = rs.C0:Lerp(CFrame.new(1*scale, 0.5*scale, 0, 0.0183038525, 0.103552699, 0.994455755, 0.340473503, 0.934539497, -0.103580341, -0.940082133, 0.340481132, -0.0181511845), 0.2) lh.C0 = lh.C0:Lerp(CFrame.new(-1*scale, -1*scale, 0, 0.0357508697, 0.0982247144, -0.994522035, 0.34014678, 0.934545875, 0.104528472, 0.93969363, -0.342020512, 0), 0.2) rh.C0 = rh.C0:Lerp(CFrame.new(1*scale, -1*scale, 0, -0.0298090633, -0.0818997845, 0.996195018, 0.340719104, 0.936117887, 0.0871557668, -0.939694166, 0.342020661, 0), 0.2) neck.C0 = neck.C0:Lerp(CFrame.new(0, 1*scale, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2) rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.992546976, 0.12186949, 0, 0, 0, 1, 0.12186949, 0.992546976, 0), 0.2) if i == 0.5 then phand.Touched:connect(function(hit) if hurt(hit, 30) then pushback(phand, hit, 50) end end) w:Destroy() local bv = Instance.new("BodyVelocity") bv.MaxForce = huge bv.Velocity = CFrame.new(phand.Position, mouse.Hit.p).lookVector*300 bv.Parent = phand game.Debris:AddItem(bv, 0.1) game.Debris:AddItem(p, 7) end swait() end attacking = false fixalljoints() end if key == "e" and not attacking then attacking = true local rs,ls,rh,lh,neck,rj = getnewjoints() for i = 0, 1, 0.1 do rs.C0 = rs.C0:Lerp(CFrame.new(2, 1, 0, 0, 0.809017539, 0.58778578, 0.777147532, -0.369906187, 0.509132028, 0.629321337, 0.456796199, -0.628725946), 0.2) swait() end local p = pumpkinhead:Clone() local phand = p.Handle if phand:FindFirstChildOfClass("Weld") then phand:FindFirstChildOfClass("Weld"):Destroy() end local roll = Instance.new("Part") roll.Size = phand.Size*1.1 roll.Transparency = 1 local m = Instance.new("SpecialMesh") m.MeshType = "Sphere" m.Parent = roll roll.Parent = phand local wr = Instance.new("Weld") wr.Part0 = roll wr.Part1 = phand wr.Parent = roll phand.CanCollide = false phand.CFrame = char["Right Arm"].CFrame phand.AT1.Position = Vector3.new(0.5,0,0) phand.AT2.Position = Vector3.new(-0.5,0,0) phand.Mesh.Scale = Vector3.new(0,0,0) local w = Instance.new("Weld") w.Part0 = char["Right Arm"] w.Part1 = phand w.C1 = CFrame.new(0,-1,0) w.Parent = char["Right Arm"] p.Parent = char local owc0 = w.C0 local owc1 = w.C1 for i = 1, 3 do w.C0 = owc0:Lerp(CFrame.new(0,0,0),i/3) w.C1 = owc1:Lerp(CFrame.new(0,1,0),i/3) swait() end for i = 0, 1.5, 0.1 do phand.Mesh.Scale = phand.Mesh.Scale:Lerp(Vector3.new(2,2,2),0.2) ls.C0 = ls.C0:Lerp(CFrame.new(-2, 1, 0, 0, 0.0871557444, -0.99619478, 0, 0.99619478, 0.0871557444, 1, 0, 0), 0.2) rs.C0 = rs.C0:Lerp(CFrame.new(2, 1, 0, -0.234881252, -0.345627934, 0.908500791, -0.649224281, 0.751387894, 0.118007705, -0.723423064, -0.562102258, -0.40087676), 0.2) neck.C0 = neck.C0:Lerp(CFrame.new(0, 2, 0, -0.956305385, 0.292371839, 0, 0, 0, 1, 0.292371839, 0.956305385, 0), 0.2) rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.933580935, -0.358368039, 0, 0, 0, 1, -0.358368039, 0.933580935, 0), 0.2) swait() end phand.Mesh.Scale = Vector3.new(2,2,2) swait(10) for i = 0, 1.5, 0.1 do ls.C0 = ls.C0:Lerp(CFrame.new(-2, 1, 0, 0, 0.0871557444, -0.99619478, 0, 0.99619478, 0.0871557444, 1, 0, 0), 0.2) rs.C0 = rs.C0:Lerp(CFrame.new(2, 1, 0, -0.345579475, -0.00998185948, 0.938337684, 0.718884468, 0.639891982, 0.271563947, -0.603144944, 0.76840359, -0.213957176), 0.2) neck.C0 = neck.C0:Lerp(CFrame.new(0, 2, 0, -0.996195555, 0.0871557295, 0, 0, 0, 1, 0.0871557295, 0.996195555, 0), 0.2) rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -0.999391556, 0.0348995775, 0, 0, 0, 1, 0.0348995775, 0.999391556, 0), 0.2) swait() end w:Destroy() game.Debris:AddItem(p, 5) local at = false phand.Touched:connect(function(hit) if hurt(hit, 10) then pushback(phand, hit, 120, true) if not at then at = true for i = 1, 30 do local ocf = phand.CFrame phand.Size = phand.Size:Lerp(Vector3.new(10,10,10),0.4) phand.CFrame = ocf phand.Mesh.Scale = phand.Mesh.Scale:Lerp(Vector3.new(10,10,10), 0.2) for i,v in pairs(p:children()) do if v:IsA("BasePart") then v.Transparency = i/30 end end swait() end p:Destroy() else hurt(hit, 40) end end end) local bv = Instance.new("BodyForce") local v = Vector3.new(mouse.Hit.p.X,phand.Position.Y,mouse.Hit.p.Z) bv.Force = CFrame.new(phand.Position, Vector3.new(mouse.Hit.p.X,phand.Position.Y,mouse.Hit.p.Z)).lookVector*5000 bv.Parent = phand fixalljoints() attacking = false end if key:byte() == 32 then local d = false if jumped and candj or candj and freefall then docon = true jumped = true d = true candj = false torso.Velocity = Vector3.new(torso.Velocity.X,120,torso.Velocity.Z) local p = Instance.new("Part") p.Anchored = true p.CanCollide = false p.Size = Vector3.new(1.16,0.1,1.16) p.CFrame = char.Torso.CFrame *CFrame.new(0,-2.5,0) *CFrame.Angles(math.rad(90),0,0) p.BrickColor = BrickColor.new("Deep orange") local m = Instance.new("SpecialMesh") m.MeshId = "rbxassetid://3270017" m.Scale = Vector3.new(1,1,0.1) m.Parent = p p.Parent = workspace for i = 1, 15 do p.Size = Vector3.new(1.16*i,1.16*i,0.1) p.Mesh.Scale = Vector3.new(i*1,i*1,0.1) p.Transparency = i/15 swait() end end if not jumped and not d then docon = true jumped = true end end if key == "t" and not attacking then attacking = true local hit = mouse.Hit local parts = {} local done = false local stop = false for i = 1, 3 do local p = Instance.new("Part") local d1 local d2 table.insert(parts, p) spawn(function() wait() repeat wait() if attacking and not done then p.CFrame = p.CFrame:Lerp(p.CFrame *CFrame.Angles(math.rad(0),math.rad(0),math.rad(20)), 0.5) end if done then p.Transparency = p.Transparency + 0.1 end until stop p:Destroy() end) p.Anchored = true p.CanCollide = false p.Size = Vector3.new(6,0.2,6) p.CFrame = CFrame.new(hit.p) *CFrame.new(math.random(-10,10),0,math.random(-10,10)) *CFrame.Angles(math.rad(90),0,0) p.Transparency = 0 local m = Instance.new("SpecialMesh") m.MeshId = "http://www.roblox.com/asset/?id=1484150481" m.TextureId = "rbxassetid://1484150485" m.Scale = Vector3.new(2,2,0.05) m.VertexColor = Vector3.new(0.3,0.3,0.3) m.Parent = p p.Parent = workspace wait(0.1) end for i,v in pairs(parts) do wait(0.05) local tbl = {"Deep orange", "CGA brown", "Really black", "Dark stone grey"} local l = lightning(v.CFrame *CFrame.new(0,0,-100), v.CFrame, 5, BrickColor.new(tbl[math.random(#tbl)]), 3, true) for q,e in pairs(l:children()) do e.Touched:connect(function(hit) hurt(hit, 50) end) end end done = true attacking = false wait(0.5) stop = true end if key == "g" and not attacking then attacking = true local rs,ls,rh,lh,neck,rj = getnewjoints() local ows = humanoid.WalkSpeed humanoid.WalkSpeed = 0 for i = 0, 2, 0.1 do ls.C0 = ls.C0:Lerp(CFrame.new(-2, 1, 0, 0.2199976, -0.868436694, -0.444322497, -0.687909424, 0.184835598, -0.70186913, 0.691653669, 0.460062593, -0.556741416), 0.2) rs.C0 = rs.C0:Lerp(CFrame.new(2, 1, 0, 0.177245006, 0.792773426, 0.583178401, 0.763805687, 0.262872756, -0.589492202, -0.620634317, 0.549919426, -0.55893147), 0.2) lh.C0 = lh.C0:Lerp(CFrame.new(-2, -0.117741741, -1.03300738, 0, 0, -1, 0.13917312, 0.99026835, 0, 0.99026835, -0.13917312, 0), 0.2) rh.C0 = rh.C0:Lerp(CFrame.new(2, -0.0999996886, -1.10000014, 0, 0, 1, -0.173648223, 0.984808087, 0, -0.984808087, -0.173648223, 0), 0.2) neck.C0 = neck.C0:Lerp(CFrame.new(0, 2, 0, -1, 0, 0, 0, 0.224951103, 0.97437036, 0, 0.97437036, -0.224951103), 0.2) rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2) swait() end local p = Instance.new("Part") p.Name = "woah!" p.BrickColor = BrickColor.new("CGA brown") p.CanCollide = false p.Size = Vector3.new(20,20,20) p.Anchored = true p.Material = "Neon" local m = Instance.new("SpecialMesh") m.MeshType = "Sphere" m.Parent = p p.CFrame = char.Torso.CFrame p.Parent = workspace for i = 1, 20 do local ocf = p.CFrame p.Size = p.Size:Lerp(Vector3.new(0.1,0.1,0.1), 0.2) p.Transparency = i/20 p.CFrame = ocf swait() end spawn(function() for i = 0, 1.5, 0.1 do ls.C0 = ls.C0:Lerp(CFrame.new(-2, 1, 0, 0, 0.258819133, -0.96592629, 0.104528472, 0.960634828, 0.257401317, 0.994522035, -0.100966774, -0.0270539615), 0.3) rs.C0 = rs.C0:Lerp(CFrame.new(2, 1, 0, 0, -0.325568229, 0.94551903, -0.0697564781, 0.943215668, 0.324775219, -0.997564137, -0.0659560561, -0.0227104928), 0.3) lh.C0 = lh.C0:Lerp(CFrame.new(-2, -2, 0, 0.0151344407, 0.172987476, -0.984807968, 0.0858316794, 0.981060624, 0.173648208, 0.996195018, -0.0871557668, 0), 0.3) rh.C0 = rh.C0:Lerp(CFrame.new(2, -2, 0, 0.0151344426, -0.172987491, 0.984808207, -0.0858317018, 0.981060803, 0.173648253, -0.99619478, -0.0871557444, 0), 0.3) neck.C0 = neck.C0:Lerp(CFrame.new(0, 2, 0, -1, 0, 0, 0, -0.13917312, 0.99026823, 0, 0.99026823, 0.13917312), 0.3) rj.C0 = rj.C0:Lerp(CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.3) swait() end end) p:Destroy() local p = Instance.new("Part") p.Name = "BOOOOOOOOOMMM WOOSH BANG POW OOF" p.BrickColor = BrickColor.new("Really black") p.Size = Vector3.new(300,0.1,0.1) p.Anchored = false p.Material = "Neon" p.CFrame = char.Torso.CFrame *CFrame.Angles(0,0,math.rad(90)) p.CanCollide = false local m = Instance.new("SpecialMesh") m.MeshType = "Cylinder" m.Parent = p local bp = Instance.new("BodyPosition") bp.MaxForce = huge bp.Position = p.Position bp.Parent = p p.Parent = workspace p.Touched:connect(function(hit) if hurt(hit, 100) then pushback(char.Torso, hit, 130) end end) for i = 1, 100 do local ocf = p.CFrame p.Size = p.Size:Lerp(Vector3.new(300,40,40), 0.1) p.CFrame = ocf p.Transparency = i/100 swait() end p:Destroy() humanoid.WalkSpeed = ows fixalljoints() attacking = false end if key == "m" and not attacking and animpose ~= "Falling" then attacking = true local rs,ls,rh,lh,neck,rj = getnewjoints() char:FindFirstChildOfClass("Humanoid").JumpPower = 500 char:FindFirstChildOfClass("Humanoid").Jump = true wait() char:FindFirstChildOfClass("Humanoid").JumpPower = 50 repeat wait() until char.HumanoidRootPart.Velocity.Y < 0 local num = 0.5 local num2 = 0.5 repeat wait() num = num + 0.5 if num2 < 10 then num2 = num2+0.5 end if num%3 == 0 then soundeffect("rbxassetid://541909814", 2, 1, char.Torso) end ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0*scale, -0.0321390443, -0.899457872, -0.435827494, -0.903263509, 0.212814748, -0.37259686, 0.427884579, 0.381691694, -0.819286048), 0.2) rs.C0 = rs.C0:Lerp(CFrame.new(1*scale, 0.5*scale, 0*scale, 0.166612521, 0.861375272, 0.47987023, 0.814885736, 0.153724328, -0.558868229, -0.555161953, 0.484153807, -0.67630893), 0.2) lh.C0 = lh.C0:Lerp(CFrame.new(-0.988398254*scale, -0.309396505*scale, -0.610682189*scale, 0.00854844693, 0.0146014411, -0.999856889, 0.498114854, 0.866946518, 0.0169191808, 0.867069304, -0.498188108, 0.00013788142), 0.2) rh.C0 = rh.C0:Lerp(CFrame.new(0.988217235*scale, -0.304208815*scale, -0.86811024*scale, 0.00891196821, -0.0143678738, 0.999857128, -0.528013527, 0.849068403, 0.0169073474, -0.849189758, -0.528088629, -1.95365774e-005), 0.2) neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -1, 0, 0, 0, 0.788011312, 0.615662038, 0, 0.61566186, -0.788011372), 0.2) rj.C0 = rj.C0 *CFrame.Angles(math.rad((5*num2)),0,0) until char.HumanoidRootPart.Velocity.Y > -1 soundeffect("rbxassetid://165969964", 3, 1, char.Torso) for i = 0, 1.3, 0.1 do if i == 0.6 then local ring = Instance.new("Part") ring.Size = Vector3.new(1.16, 1.16, 0.16) local bc = BrickColor.Random() if rage then bc = BrickColor.new("Really black") end ring.BrickColor = bc ring.Anchored = true ring.CFrame = char.Torso.CFrame *CFrame.new(0,-2.5,0) ring.CanCollide=false ring.CFrame = ring.CFrame *CFrame.Angles(math.rad(90),0,0) local m = Instance.new("SpecialMesh", ring) m.MeshId = "rbxassetid://3270017" ring.Parent = workspace local thing = Instance.new("Part") thing.Size = Vector3.new(1.866, 1.421, 2.155) thing.BrickColor = bc thing.Anchored = true thing.CanCollide = false thing.CFrame = char.Torso.CFrame *CFrame.new(0,-2.5*2,0) local m2 = Instance.new("SpecialMesh", thing) m2.MeshId = "rbxassetid://20329976" m2.Scale = Vector3.new(1,0.5,1) thing.Parent = workspace local oldcf2 = thing.CFrame local multiplier2 = Vector3.new(1.866, 1.421, 2.155)*3 local oldcf = ring.CFrame local multiplier = Vector3.new(1.16, 1.16, 0.16)*3 thing.Touched:connect(function(hit) if hurt(hit, math.random(30,35)) then local bv = Instance.new("BodyVelocity") bv.MaxForce = huge bv.Velocity = CFrame.new(thing.Position, hit.Position).lookVector*100 bv.Parent = hit game.Debris:AddItem(bv, 0.1) end end) ring.Touched:connect(function(hit) if hurt(hit, math.random(10,15)) then hit.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true local bv = Instance.new("BodyVelocity") bv.MaxForce = huge bv.Velocity = CFrame.new(ring.Position, hit.Position).lookVector*100 bv.Parent = hit game.Debris:AddItem(bv, 0.1) end end) spawn(function() for i = 0, 20 do ring.Size = multiplier*i m.Scale = m.Scale +Vector3.new(3,3,3) ring.CFrame = oldcf ring.Transparency = ring.Transparency +0.05 thing.Size = multiplier*i m2.Scale = m2.Scale +Vector3.new(3,3,3) thing.CFrame = oldcf2 thing.Transparency = thing.Transparency +0.05 swait() end thing:Destroy() ring:Destroy() end) end ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0*scale, 0, 0.13917312, -0.99026823, 0, 0.99026823, 0.13917312, 1, 0, 0), 0.7) rs.C0 = rs.C0:Lerp(CFrame.new(1*scale, 0.5*scale, 0*scale, 0, -0.190809026, 0.981627405, 0, 0.981627405, 0.190809026, -1, 0, 0), 0.7) lh.C0 = lh.C0:Lerp(CFrame.new(-1*scale, -0.297612011*scale, -0.327801049*scale, 0, 0, -1, 0.374606699, 0.927184403, 0, 0.927184403, -0.374606699, 0), 0.7) rh.C0 = rh.C0:Lerp(CFrame.new(1*scale, -0.399999917*scale, -0.5*scale, 0, 0, 1, 0.121869355, 0.99254632, 0, -0.99254632, 0.121869355, 0), 0.7) neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.7) rj.C0 = rj.C0:Lerp(CFrame.new(0*scale, -0.800000072*scale, 0*scale, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.7) wait() end attacking = false fixalljoints() end if key == "q" and not attacking then attacking = true local rs = replacejoint("Right Shoulder") local ls = replacejoint("Left Shoulder") local rj = replacejoint("RootJoint") local neck = replacejoint("Neck") local arm = Instance.new("Part") arm.Name = "cool effects brooo" arm.BrickColor = BrickColor.new("Deep orange") arm.Material = "Neon" arm.Transparency = 1 smooth(arm) arm.Size = char["Right Arm"].Size+Vector3.new(0.05,0.05,0.05) arm.CanCollide = false arm.Anchored = false arm.Parent = char local w = Instance.new("Weld") w.Name = "weld 4 kool peepz" w.Part0 = arm w.Part1 = char["Right Arm"] w.Parent = arm for i = 0, 2, 0.1 do if arm.Transparency > 0.5 then arm.Transparency = arm.Transparency - 0.1 end ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0*scale, 0, 0.258819103, -0.96592617, 0, 0.96592617, 0.258819103, 1, 0, 0), 0.2) rs.C0 = rs.C0:Lerp(CFrame.new(1*scale, 0.5*scale, 0*scale, 0, -0.325568289, 0.945519149, 0.974371135, 0.212695867, 0.0732370615, -0.224951506, 0.921286225, 0.317224324), 0.2) neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -0.913546145, 0.406736821, 0, 0, 0, 1, 0.406736821, 0.913546145, 0), 0.2) rj.C0 = rj.C0:Lerp(CFrame.new(0*scale, 0*scale, 0*scale, -0.920505762, -0.390731364, 0, 0, 0, 1, -0.390731364, 0.920505762, 0), 0.2) swait() end local rjcf = rj.C0 local lscf = ls.C0 local neckcf = neck.C0 local rscf = rs.C0 swait(25) soundeffect("rbxassetid://449025737", 2, 1, char.Torso) for i = 0, 1, 0.1 do local ring = Instance.new("Part") ring.Name = "cool rihg thtat's thadsada" ring.BrickColor = BrickColor.new("Deep orange") ring.Size = Vector3.new(1,1,1) ring.CanCollide = false ring.Anchored = true ring.CFrame = char["Right Arm"].CFrame *CFrame.Angles(math.rad(90),math.rad(0),math.rad(0)) local m = Instance.new("SpecialMesh") m.MeshId = "rbxassetid://3270017" m.Parent = ring ring.Parent = workspace spawn(function() local sz = m.Scale for i = 1, 20 do ring.Transparency = i/20 m.Scale = sz:Lerp(Vector3.new(3,3,3), i/20) swait() end ring:Destroy() end) ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0*scale, 0, 0.0871557519, -0.996195078, 0, 0.996195078, 0.0871557519, 1, 0, 0), i/1) rs.C0 = rs.C0:Lerp(CFrame.new(0.993019104*scale, 0.410033107*scale, -0.389689326*scale, 0.00568197947, 0.016501667, 0.999848545, 0.99451226, -0.104560688, -0.00392594887, 0.104480237, 0.994383693, -0.0170050543), i/1) neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -0.984808803, -0.173648447, 0, 0, 0, 1, -0.173648447, 0.984808803, 0), i/1) rj.C0 = rj.C0:Lerp(CFrame.new(0*scale, 0*scale, 0*scale, -0.981628299, 0.190809309, 0, 0, 0, 1, 0.190809309, 0.981628299, 0), i/1) swait() end local p = Instance.new("Part") p.Anchored = true p.CanCollide = false p.BrickColor = BrickColor.new("Deep orange") p.Material = "Neon" p.Size = Vector3.new(1,1,1) smooth(p) p.CFrame = char["Right Arm"].CFrame *CFrame.new(0,-1,0) p.Name = "spherical radicul" local m = Instance.new("SpecialMesh") m.MeshType = "Sphere" m.Parent = p p.Touched:connect(function(hit) if hurt(hit, 50) then local dir = CFrame.new(p.CFrame.p,hit.CFrame.p).lookVector local bv = Instance.new("BodyVelocity") bv.MaxForce = huge bv.Velocity = dir*200 bv.Parent = hit game.Debris:AddItem(bv, 0.1) end end) p.Parent = workspace local ring = p:Clone() ring:ClearAllChildren() local m = Instance.new("SpecialMesh") m.MeshId = "rbxassetid://3270017" m.Scale = Vector3.new(1.2,1.2,1.2) m.Parent = ring ring.CFrame = ring.CFrame *CFrame.Angles(math.rad(90),0,0) ring.Parent = workspace local size = m.Scale local size2 = p.Size for i = 1, 30 do local cf = p.CFrame m.Scale = size:Lerp(Vector3.new(30.2,30.2,30.2), i/30) p.Size = size2:Lerp(Vector3.new(30,30,30), i/30) p.Transparency = i/30 ring.Transparency = i/30 p.CFrame = cf swait() end p:Destroy() ring:Destroy() fixalljoints() swait(3) attacking = false fade(arm, true) end if key == "z" and attacking == false then local og = mobs.Volume mobs.Volume = 0.1 soundeffect("rbxassetid://333446256", 2, 1, char["HumanoidRootPart"], true) mobs.Volume = og end end) local lp spawn(function() local num = 0 while swait() do local v = char.HumanoidRootPart.Velocity if v.Y > 15 then animpose = "Jump" end if v.Y < -15 then animpose = "Falling" end if math.abs(v.X)+math.abs(v.Z) >=10 and v.Y == 0 then animpose = "Walking" end if math.abs(v.X)+v.Y+math.abs(v.Z) <= 9 and v.Y == 0 then animpose = "Idle" end end end) local num = 0 while swait() do num = num + 0.1 local sin = math.sin(num) if animpose == "Walking" and cananim then for i = 0, 1.5, 0.1 do if animpose == "Walking" and cananim then ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0*scale, 0.0406726934, 0.0329360999, -0.99862957, 0.776081443, 0.62845856, 0.0523359552, 0.629320979, -0.777146459, 0), 0.2) rs.C0 = rs.C0:Lerp(CFrame.new(1*scale, 0.5*scale, 0*scale, -0.0388932228, -0.0350196026, 0.998629689, 0.742127001, 0.668214321, 0.0523359627, -0.66913116, 0.743145287, 0), 0.2) lh.C0 = lh.C0:Lerp(CFrame.new(-1*scale, -1*scale, 0*scale, 0.024677692, 0.0246776957, -0.999390841, 0.706676483, 0.706676781, 0.0348994955, 0.707107425, -0.707107246, 0), 0.2) rh.C0 = rh.C0:Lerp(CFrame.new(1*scale, -1*scale, 0*scale, -0.0136363264, -0.032125175, 0.999390841, 0.390493214, 0.919944584, 0.0348994955, -0.920505524, 0.390731305, 0), 0.2) neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2) rj.C0 = rj.C0:Lerp(CFrame.new(0*scale, 0*scale, 0*scale, -0.99969542, -0.0174524058, 0.0174497478, 0.0174524058, 0, 0.99984771, -0.0174497478, 0.99984771, 0.000304586458), 0.2) swait() else break end end for i = 0, 1.5, 0.1 do if animpose == "Walking" and cananim then ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0*scale, -0.0433885492, 0.0292659476, -0.99862957, -0.827903032, 0.558427453, 0.0523359552, 0.559194028, 0.829038858, 0), 0.2) rs.C0 = rs.C0:Lerp(CFrame.new(1*scale, 0.5*scale, 0*scale, 0.0400917344, -0.0336409658, 0.998629689, -0.764996171, 0.641907811, 0.0523359627, -0.642788768, -0.76604563, 0), 0.2) lh.C0 = lh.C0:Lerp(CFrame.new(-1*scale, -1*scale, 0*scale, -0.0163843632, 0.0308145005, -0.999390841, -0.469186544, 0.882411182, 0.0348994955, 0.882949054, 0.469472289, 0), 0.2) rh.C0 = rh.C0:Lerp(CFrame.new(1*scale, -1*scale, 0*scale, 0.0246777162, -0.0246777181, 0.999390841, -0.70667702, 0.70667696, 0.0348994955, -0.707107902, -0.707107782, 0), 0.2) neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2) rj.C0 = rj.C0:Lerp(CFrame.new(0*scale, 0*scale, 0*scale, -0.999695539, 0.0174497515, -0.0174524095, -0.0174497515, 0.000304586574, 0.999847829, 0.0174524058, 0.99984771, -2.90993982e-11), 0.2) swait() else break end end end if animpose == "Idle" and cananim then ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0*scale, 0, 0.0523359552, -0.99862957, 0, 0.99862957, 0.0523359552, 1, 0, 0)*CFrame.new(0,sin/30,0)*CFrame.Angles(math.rad(sin*3),0,0), 0.2) rs.C0 = rs.C0:Lerp(CFrame.new(1*scale, 0.5*scale, 0*scale, 0, -0.0523359552, 0.99862957, 0, 0.99862957, 0.0523359552, -1, -0, 0)*CFrame.new(0,sin/30,0)*CFrame.Angles(math.rad(sin*3),0,0), 0.2) lh.C0 = lh.C0:Lerp(CFrame.new(-1*scale, -1*scale, 0*scale, 0, 0.0348994955, -0.999390841, 0, 0.999390841, 0.0348994955, 1, 0, 0), 0.2) rh.C0 = rh.C0:Lerp(CFrame.new(1*scale, -1*scale, 0*scale, 0, -0.0348994955, 0.999390841, 0, 0.999390841, 0.0348994955, -1, 0, 0), 0.2) neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -0.994522035, -0.104528472, 0, 0, 0, 1, -0.104528472, 0.994522035, 0), 0.2) rj.C0 = rj.C0:Lerp(CFrame.new(0*scale, 0*scale, 0*scale, -0.997564137, 0.0697564781, 0, 0, 0, 1, 0.0697564781, 0.997564137, 0), 0.2) swait() end if animpose == "Jump" and cananim then for i = 0, 0.8, 0.1 do if animpose == "Jump" and cananim then ls.C0 = ls.C0:Lerp(CFrame.new(-1*scale, 0.5*scale, 0*scale, 0, 0.121869355, -0.99254632, 0, 0.99254632, 0.121869355, 1, 0, 0), 0.2) rs.C0 = rs.C0:Lerp(CFrame.new(1*scale, 0.5*scale, 0*scale, 0, -0.104528472, 0.994522035, 0, 0.994522035, 0.104528472, -1, -0, 0), 0.2) lh.C0 = lh.C0:Lerp(CFrame.new(-1*scale, -0.499999911*scale, -0.5*scale, 0, 0, -1, 0.309017062, 0.951056957, 0, 0.951056957, -0.309017062, 0), 0.2) rh.C0 = rh.C0:Lerp(CFrame.new(1*scale, -1*scale, 0*scale, 0, 0, 1, -0.121869355, 0.99254632, 0, -0.99254632, -0.121869355, 0), 0.2) neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2) rj.C0 = rj.C0:Lerp(CFrame.new(0*scale, 0*scale, 0*scale, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2) swait() else break end end end if animpose == "Falling" and cananim then ls.C0 = ls.C0:Lerp(CFrame.new(-0.987813056*scale, 0.599254608*scale, 0*scale, 0, 0.121869355, -0.99254632, 0, 0.99254632, 0.121869355, 1, 0, 0), 0.2) rs.C0 = rs.C0:Lerp(CFrame.new(0.986082673*scale, 0.599026859*scale, 0*scale, 0, -0.139173135, 0.990268409, 0, 0.990268409, 0.139173135, -1, 0, 0), 0.2) lh.C0 = lh.C0:Lerp(CFrame.new(-1*scale, -0.963904023*scale, 0.0336604826*scale, 0, 0.104528472, -0.994522035, 0.0697564557, 0.992099881, 0.1042739, 0.997564554, -0.0693743229, -0.00729153492), 0.2) rh.C0 = rh.C0:Lerp(CFrame.new(1*scale, -1*scale, 0*scale, 0, -0.0697564781, 0.997564137, -0.121869355, 0.990128577, 0.0692365244, -0.99254632, -0.121572495, -0.00850117672), 0.2) neck.C0 = neck.C0:Lerp(CFrame.new(0*scale, 1*scale, 0*scale, -1, 0, 0, 0, 0.13917312, 0.99026823, 0, 0.99026823, -0.13917312), 0.2) rj.C0 = rj.C0:Lerp(CFrame.new(0*scale, 0*scale, 0*scale, -1, -0, -0, 0, 0, 1, 0, 1, 0), 0.2) end end
Optional Paste Settings
Category:
None
Cryptocurrency
Cybersecurity
Fixit
Food
Gaming
Haiku
Help
History
Housing
Jokes
Legal
Money
Movies
Music
Pets
Photo
Science
Software
Source Code
Spirit
Sports
Travel
TV
Writing
Tags:
Syntax Highlighting:
None
Bash
C
C#
C++
CSS
HTML
JSON
Java
JavaScript
Lua
Markdown (PRO members only)
Objective C
PHP
Perl
Python
Ruby
Swift
4CS
6502 ACME Cross Assembler
6502 Kick Assembler
6502 TASM/64TASS
ABAP
AIMMS
ALGOL 68
APT Sources
ARM
ASM (NASM)
ASP
ActionScript
ActionScript 3
Ada
Apache Log
AppleScript
Arduino
Asymptote
AutoIt
Autohotkey
Avisynth
Awk
BASCOM AVR
BNF
BOO
Bash
Basic4GL
Batch
BibTeX
Blitz Basic
Blitz3D
BlitzMax
BrainFuck
C
C (WinAPI)
C Intermediate Language
C for Macs
C#
C++
C++ (WinAPI)
C++ (with Qt extensions)
C: Loadrunner
CAD DCL
CAD Lisp
CFDG
CMake
COBOL
CSS
Ceylon
ChaiScript
Chapel
Clojure
Clone C
Clone C++
CoffeeScript
ColdFusion
Cuesheet
D
DCL
DCPU-16
DCS
DIV
DOT
Dart
Delphi
Delphi Prism (Oxygene)
Diff
E
ECMAScript
EPC
Easytrieve
Eiffel
Email
Erlang
Euphoria
F#
FO Language
Falcon
Filemaker
Formula One
Fortran
FreeBasic
FreeSWITCH
GAMBAS
GDB
GDScript
Game Maker
Genero
Genie
GetText
Go
Godot GLSL
Groovy
GwBasic
HQ9 Plus
HTML
HTML 5
Haskell
Haxe
HicEst
IDL
INI file
INTERCAL
IO
ISPF Panel Definition
Icon
Inno Script
J
JCL
JSON
Java
Java 5
JavaScript
Julia
KSP (Kontakt Script)
KiXtart
Kotlin
LDIF
LLVM
LOL Code
LScript
Latex
Liberty BASIC
Linden Scripting
Lisp
Loco Basic
Logtalk
Lotus Formulas
Lotus Script
Lua
M68000 Assembler
MIX Assembler
MK-61/52
MPASM
MXML
MagikSF
Make
MapBasic
Markdown (PRO members only)
MatLab
Mercury
MetaPost
Modula 2
Modula 3
Motorola 68000 HiSoft Dev
MySQL
Nagios
NetRexx
Nginx
Nim
NullSoft Installer
OCaml
OCaml Brief
Oberon 2
Objeck Programming Langua
Objective C
Octave
Open Object Rexx
OpenBSD PACKET FILTER
OpenGL Shading
Openoffice BASIC
Oracle 11
Oracle 8
Oz
PARI/GP
PCRE
PHP
PHP Brief
PL/I
PL/SQL
POV-Ray
ParaSail
Pascal
Pawn
Per
Perl
Perl 6
Phix
Pic 16
Pike
Pixel Bender
PostScript
PostgreSQL
PowerBuilder
PowerShell
ProFTPd
Progress
Prolog
Properties
ProvideX
Puppet
PureBasic
PyCon
Python
Python for S60
QBasic
QML
R
RBScript
REBOL
REG
RPM Spec
Racket
Rails
Rexx
Robots
Roff Manpage
Ruby
Ruby Gnuplot
Rust
SAS
SCL
SPARK
SPARQL
SQF
SQL
SSH Config
Scala
Scheme
Scilab
SdlBasic
Smalltalk
Smarty
StandardML
StoneScript
SuperCollider
Swift
SystemVerilog
T-SQL
TCL
TeXgraph
Tera Term
TypeScript
TypoScript
UPC
Unicon
UnrealScript
Urbi
VB.NET
VBScript
VHDL
VIM
Vala
Vedit
VeriLog
Visual Pro Log
VisualBasic
VisualFoxPro
WHOIS
WhiteSpace
Winbatch
XBasic
XML
XPP
Xojo
Xorg Config
YAML
YARA
Z80 Assembler
ZXBasic
autoconf
jQuery
mIRC
newLISP
q/kdb+
thinBasic
Paste Expiration:
Never
Burn after read
10 Minutes
1 Hour
1 Day
1 Week
2 Weeks
1 Month
6 Months
1 Year
Paste Exposure:
Public
Unlisted
Private
Folder:
(members only)
Password
NEW
Enabled
Disabled
Burn after read
NEW
Paste Name / Title:
Create New Paste
Hello
Guest
Sign Up
or
Login
Sign in with Facebook
Sign in with Twitter
Sign in with Google
You are currently not logged in, this means you can not edit or delete anything you paste.
Sign Up
or
Login
Public Pastes
Untitled
13 hours ago | 0.16 KB
settings
13 hours ago | 0.10 KB
IT & AI
22 hours ago | 1.62 KB
Stationeers - Sign Tags from Power Distributi...
HTML | 1 day ago | 2.00 KB
PM: Shopify Client Edits
1 day ago | 0.19 KB
PM: Shopify Assigning Design Task 2
1 day ago | 0.14 KB
PM: Shopify Assigning Design Task 1
1 day ago | 0.32 KB
Commodore Callback 8020
1 day ago | 0.18 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!