Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- warn[[
- AlmightyToast's 32K Sword
- Sharpness enchantment.level.32767
- Knockback X
- Fire Aspect enchantment.level.32767
- Looting X
- Sweeping Edge III
- Unbreaking enchantment.level.32767
- Mending
- Curse of Vanishing
- When in main hand:
- 1.6 Attack Speed
- 16391 Attack Damage
- ]]
- function spawn_32k()
- local plr = owner
- local char = plr.Character
- local hum = char:FindFirstChildOfClass("Humanoid")
- local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
- local head = char:FindFirstChild("Head")
- if hum.RigType ~= Enum.HumanoidRigType.R6 then warn("turn r6 or it wont work lol") return end
- local tool = Instance.new("Tool")
- local handle = Instance.new("Part")
- local SpecialMesh2 = Instance.new("SpecialMesh")
- tool.Name = "AlmightyToast's 32K Sword"
- tool.Parent = plr.Backpack
- tool.TextureId = 'rbxassetid:/4911466046'
- tool.ToolTip = [[
- AlmightyToast's 32K Sword
- Sharpness enchantment.level.32767
- Knockback X
- Fire Aspect enchantment.level.32767
- Looting X
- Sweeping Edge III
- Unbreaking enchantment.level.32767
- Mending
- Curse of Vanishing
- When in main hand:
- 1.6 Attack Speed
- 81917.5 Attack Damage
- ]]
- tool.Grip = CFrame.new(-1.10684741, 4.97379915e-14, 0.99055028, -3.20973932e-08, 0.734302819, 0.6788221, -1, -4.37113883e-08, 0, 2.96722487e-08, -0.6788221, 0.734302819)
- handle.Name = "Handle"
- handle.Parent = tool
- handle.Size = Vector3.new(3.1400001, 0.195999995, 3.1400001)
- handle.BottomSurface = Enum.SurfaceType.Smooth
- handle.CanCollide = false
- handle.TopSurface = Enum.SurfaceType.Smooth
- SpecialMesh2.Parent = handle
- SpecialMesh2.MeshId = "rbxassetid://3676810102"
- SpecialMesh2.Scale = Vector3.new(0.200000003, 0.200000003, 0.200000003)
- SpecialMesh2.TextureId = "rbxassetid://3676810220"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- for i,v in pairs(tool:GetChildren()) do
- v.Massless = true
- if v:IsA("Part") and v ~= handle then
- local weld = Instance.new("Weld")
- weld.Part0 = handle
- weld.Part1 = v
- weld.C0 = handle.CFrame:Inverse()
- weld.C1 = v.CFrame:Inverse()
- weld.Parent = v
- end
- end
- tool.Parent = char
- local debris = game:GetService("Debris")
- local tween = game:GetService("TweenService")
- local sword_meta = {sharpness = 32767, knockback = 10}
- local using = false
- local equipped = false
- local holding = false
- local stamina = 100
- local dmg = 35 + (5 * sword_meta.sharpness)
- local kb = 25 + (3 * sword_meta.knockback)
- local ls = nil
- local blocking = false
- local combat_18 = true
- local first_person = true
- local effects = {}
- function effects.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
- local hitsound2 = Instance.new("Sound")
- hitsound2.SoundId = 'rbxassetid://3362346832'
- hitsound2.Volume = 1.5
- hitsound2.Parent = handle
- local critsound = Instance.new("Sound")
- critsound.SoundId = 'rbxassetid://4801410586'
- critsound.Volume = 1.5
- critsound.Parent = handle
- function effects.effect(par,tarhum,weld,damage,targtorso,crit)
- local confirm = Instance.new("IntValue",par)
- confirm.Name = plr.Name .. 'swordhit 32k'
- confirm.Parent = par
- if combat_18 then
- debris:AddItem(confirm,0.05)
- else
- debris:AddItem(confirm,0.12)
- end
- if not par:FindFirstChild('fireaspect dmg') then
- local fireconfirm = Instance.new("IntValue",par)
- fireconfirm.Name = 'fireaspect dmg'
- fireconfirm.Parent = par
- debris:AddItem(fireconfirm,12)
- for i,v in pairs(par:GetChildren()) do
- if (v:IsA("Part") or v:IsA("WedgePart") or v:IsA("BasePart") or v:IsA("MeshPart") or v:IsA("UnionOperation")) and v.Name ~= "effects" then
- local fire = Instance.new("Fire")
- fire.Parent = v
- debris:AddItem(fire,12)
- end
- end
- local clonehit = hitsound2:Clone()
- clonehit.Parent = weld
- spawn(function()
- while fireconfirm and fireconfirm.Parent and tarhum and tarhum.Parent and tarhum.Health > 0 and clonehit and clonehit.Parent do
- wait(1)
- clonehit:Play()
- tarhum:TakeDamage(5)
- for i,v in pairs(par:GetDescendants()) do
- if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" and not v:IsDescendantOf(char) and not v.Parent:IsA("Tool") and v.Name ~= "fallblock" then
- spawn(function()
- local weld = Instance.new("Weld")
- local part = v:Clone()
- part.CanCollide = false
- part.Massless = true
- part.Anchored = false
- for i,n in pairs(part:GetDescendants()) do
- if not n:IsA("SpecialMesh") then
- n:Destroy()
- end
- if n:IsA("SpecialMesh") then
- n.TextureId = ""
- n.Scale = n.Scale * 1.001
- end
- end
- weld.Part0 = part
- weld.Part1 = v
- weld.Parent = part
- part.BrickColor = BrickColor.new("Really red")
- part.Size = v.Size * 1.001
- part.Material = Enum.Material.SmoothPlastic
- part.CFrame = v.CFrame
- part.Parent = v.Parent
- part.Name = "hurtcolor"
- if 0.6 >= v.Transparency then
- part.Transparency = 0.6
- end
- if v.Transparency > 0.6 then
- part.Transparency = v.Transparency*1.5
- end
- part.CanCollide = false
- wait(0.1)
- part:Destroy()
- end)
- end
- end
- end
- end)
- end
- tarhum:TakeDamage(damage)
- if not hitsound2 then
- hitsound2 = Instance.new("Sound")
- hitsound2.SoundId = 'rbxassetid://3362346832'
- hitsound2.Volume = 1.5
- hitsound2.Parent = handle
- end
- if not critsound then
- critsound = Instance.new("Sound")
- critsound.SoundId = 'rbxassetid://4801410586'
- critsound.Volume = 1.5
- critsound.Parent = handle
- end
- if math.random(1,2) == 1 and crit then
- critsound.SoundId = 'rbxassetid://4801410586'
- elseif math.random(1,2) == 2 and crit then
- critsound.SoundId = 'rbxassetid://4801410149'
- elseif math.random(1,2) == 1 then
- hitsound2.SoundId = 'rbxassetid://3362346832'
- else
- hitsound2.SoundId = 'rbxassetid://3362337129'
- end
- if crit then
- critsound:Play()
- else
- hitsound2:Play()
- end
- --[[
- spawn(function()
- repeat wait() until not hitsound2.IsPlaying
- hitsound2.Parent = nil
- end)
- ]]
- spawn(function()
- local b = Instance.new("BodyVelocity")
- b.Parent = targtorso
- b.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- b.Velocity = torso.CFrame.LookVector*(kb*1.25) + Vector3.new(0,9,0)
- debris:AddItem(b,0.1)
- end)
- for i,v in pairs(par:GetDescendants()) do
- if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" and not v:IsDescendantOf(char) and not v.Parent:IsA("Tool") and v.Name ~= "fallblock" then
- spawn(function()
- local weld = Instance.new("Weld")
- local part = v:Clone()
- part.CanCollide = false
- part.Massless = true
- part.Anchored = false
- for i,n in pairs(part:GetDescendants()) do
- if not n:IsA("SpecialMesh") then
- n:Destroy()
- end
- if n:IsA("SpecialMesh") then
- n.TextureId = ""
- n.Scale = n.Scale * 1.001
- end
- end
- weld.Part0 = part
- weld.Part1 = v
- weld.Parent = part
- part.BrickColor = BrickColor.new("Really red")
- part.Size = v.Size * 1.001
- part.Material = Enum.Material.SmoothPlastic
- part.CFrame = v.CFrame
- part.Parent = v.Parent
- part.Name = "hurtcolor"
- if 0.6 >= v.Transparency then
- part.Transparency = 0.6
- end
- if v.Transparency > 0.6 then
- part.Transparency = v.Transparency*1.5
- end
- part.CanCollide = false
- wait(0.1)
- part:Destroy()
- end)
- end
- end
- if 0 >= tarhum.Health then
- local targplr = game:GetService("Players"):GetPlayerFromCharacter(par)
- if targplr then
- for i,v in pairs(targplr['Backpack']:GetChildren()) do
- pcall(function()
- if v:IsA("Tool") then
- v.Parent = workspace
- v.Handle.CanCollide = true
- v.Handle.Position = weld.Position+Vector3.new(0,2,0)
- end
- end)
- end
- end
- for i,v in pairs(par:GetChildren()) do
- pcall(function()
- if v:IsA("Tool") then
- v.Parent = workspace
- v.Handle.CanCollide = true
- v.Handle.Position = weld.Position+Vector3.new(0,2,0)
- end
- end)
- end
- end
- end
- local stamina = 100
- local function recharge()
- if 100 > stamina then
- stamina = stamina + 10
- end
- if stamina > 100 then
- stamina = 100
- end
- end
- spawn(function()
- while wait(0.06) do
- wait(0.06)
- recharge()
- end
- end)
- local isFalling = false
- hum.StateChanged:Connect(function(old,new)
- if new == Enum.HumanoidStateType.Landed then
- isFalling = false
- elseif new == Enum.HumanoidStateType.Running then
- isFalling = false
- elseif new == Enum.HumanoidStateType.RunningNoPhysics then
- isFalling = false
- elseif new == Enum.HumanoidStateType.Jumping then
- isFalling = true
- elseif new == Enum.HumanoidStateType.FallingDown then
- isFalling = true
- elseif new == Enum.HumanoidStateType.Freefall then
- isFalling = true
- elseif new == Enum.HumanoidStateType.Climbing then
- isFalling = false
- end
- end)
- local hitanimid = 0
- local function hit(target,close)
- spawn(function()
- hitanimid = 1
- if hitanimid == 1 then else return end
- tween:Create(tool,TweenInfo.new(0.12),{Grip = CFrame.new(-1.12343681, 7.46069873e-14, 0.865265131, -2.96722469e-08, 0.678822041, -0.734302819, -1, -4.37113883e-08, 0, -3.20973932e-08, 0.734302819, 0.678822041)}):Play()
- hitanimid = 2
- wait(0.08)
- if hitanimid == 2 then else return end
- tween:Create(tool,TweenInfo.new(0.12),{Grip = CFrame.new(-0.825168073, -0.020077154, 1.00834012, -0.275093406, 0.960726619, -0.0364401713, -0.146487176, -0.0044247508, 0.989202619, 0.950192153, 0.277461171, 0.141951352)}):Play()
- hitanimid = 3
- wait(0.04)
- if hitanimid == 3 then else return end
- tween:Create(tool,TweenInfo.new(0.12),{Grip = CFrame.new(-1.10684741, 4.97379915e-14, 0.99055028, -3.20973932e-08, 0.734302819, 0.6788221, -1, -4.37113883e-08, 0, 2.96722487e-08, -0.6788221, 0.734302819)}):Play()
- end)
- if (combat_18 or (stamina > 30 and not combat_18)) and ((target and close) or not first_person) then else return end
- local temp_dmg = 0
- local crit = false
- if combat_18 then
- temp_dmg = dmg+(5 * (32000 + 1))
- else
- if isFalling then
- temp_dmg = (dmg*1.57142857)+(5 * (32000 + 1))
- crit = true
- elseif stamina > 30 then
- temp_dmg = dmg+(5 * (32000 + 1))
- end
- stamina = 0
- end
- local connection
- if not first_person then
- connection = handle.Touched:Connect(function(obj)
- local targchar,targtorso,targhum
- pcall(function()
- targchar = obj.Parent
- end)
- pcall(function()
- targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("HumanoidRootPart")
- end)
- pcall(function()
- targhum = targchar:FindFirstChildOfClass("Humanoid")
- end)
- if targchar and targchar ~= char and targtorso and targhum then
- if targhum ~= nil then
- if targhum.Parent then
- if not targhum.Parent:FindFirstChild(plr.Name .. "swordhit 32k") and obj.Parent:IsA("Model") and targhum.Health > 0 then
- effects.effect(targhum.Parent,targhum,targchar.PrimaryPart,temp_dmg,targtorso,crit)
- end
- end
- end
- end
- end)
- elseif first_person then
- local targchar,targtorso,targhum
- for i,v in pairs(workspace:GetChildren()) do
- if target:IsDescendantOf(v) then
- targchar = v
- end
- end
- --[[
- pcall(function()
- targchar = target.Parent
- end)
- ]]
- pcall(function()
- targtorso = targchar:FindFirstChild("Torso") or targchar:FindFirstChild("HumanoidRootPart")
- end)
- pcall(function()
- targhum = targchar:FindFirstChildOfClass("Humanoid")
- end)
- if target and targchar and targchar ~= char and targtorso and targhum then
- if targhum ~= nil then
- if targhum.Parent then
- if not targhum.Parent:FindFirstChild(plr.Name .. "swordhit 32k") and targchar:IsA("Model") and targhum.Health > 0 then
- effects.effect(targhum.Parent,targhum,targchar.PrimaryPart,temp_dmg,targtorso,crit)
- end
- end
- end
- end
- end
- if combat_18 then
- wait(0.05)
- else
- wait(0.12)
- end
- spawn(function()
- wait(0.1)
- connection:Disconnect()
- end)
- end
- local function CheckIfAlive()
- local alive = false;
- if (plr and plr.Parent and char and char.Parent and hum and hum.Parent and hum.Health > 0 and torso and torso.Parent and head and head.Parent) then
- alive = true;
- end;
- return alive;
- end;
- tool.Equipped:Connect(function()
- char = tool.Parent;
- plr = game:GetService("Players"):GetPlayerFromCharacter(char);
- hum = char:FindFirstChildOfClass("Humanoid");
- torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart");
- head = char:FindFirstChild("Head");
- if not CheckIfAlive() then tool.Parent = nil return end;
- equipped = true
- end)
- tool.Unequipped:Connect(function()
- if 0 >= hum.Health then
- tool:Destroy()
- end
- equipped = false
- end)
- local mouseremote = Instance.new("RemoteEvent")
- mouseremote.Name = "mouseremote"
- mouseremote.Parent = tool
- local code = [[
- workspace.Camera.FieldOfView = 90
- local plr = game:GetService("Players").LocalPlayer
- local char = plr.Character
- local torso = char:FindFirstChild("Torso") or char:FindFirstChild("HumanoidRootPart")
- local hum = char:FindFirstChildOfClass("Humanoid")
- local mouse = plr:GetMouse()
- local remote = script.Parent:WaitForChild("mouseremote")
- mouse.TargetFilter = char
- plr.CameraMode = Enum.CameraMode.LockFirstPerson
- mouse.Button1Down:Connect(function()
- local target = mouse.Target
- local mag = nil
- local close = false
- if target and torso then
- mag = (torso.Position - target.Position).magnitude
- end
- if mag and 8 >= mag then
- close = true
- end
- remote:FireServer(1,target,close)
- end)
- mouse.KeyDown:Connect(function(key)
- if key == "e" then
- remote:FireServer(2,true)
- end
- end)
- mouse.KeyUp:Connect(function(key)
- if key == "e" then
- remote:FireServer(2,false)
- end
- end)
- ]]
- NLS(code,tool)
- mouseremote.OnServerEvent:Connect(function(plr,mode,data,data2)
- if mode == 1 and equipped and not using and not blocking then
- using = true
- hit(data,data2)
- using = false
- end
- if mode == 2 then
- if data then
- blocking = true
- tool.Grip = CFrame.new(-0.825168073, -0.020077154, 1.00834012, -0.275093406, 0.960726619, -0.0364401713, -0.146487176, -0.0044247508, 0.989202619, 0.950192153, 0.277461171, 0.141951352)
- --tween:Create(tool,TweenInfo.new(0.12),{Grip = CFrame.new(-0.825168073, -0.020077154, 1.00834012, -0.275093406, 0.960726619, -0.0364401713, -0.146487176, -0.0044247508, 0.989202619, 0.950192153, 0.277461171, 0.141951352)}):Play()
- elseif not data then
- blocking = false
- tool.Grip = CFrame.new(-1.10684741, 4.97379915e-14, 0.99055028, -3.20973932e-08, 0.734302819, 0.6788221, -1, -4.37113883e-08, 0, 2.96722487e-08, -0.6788221, 0.734302819)
- --tween:Create(tool,TweenInfo.new(0.12),{Grip = CFrame.new(-1.10684741, 4.97379915e-14, 0.99055028, -3.20973932e-08, 0.734302819, 0.6788221, -1, -4.37113883e-08, 0, 2.96722487e-08, -0.6788221, 0.734302819)}):Play()
- end
- end
- end)
- local box = Instance.new("SelectionBox")
- box.Adornee = handle
- box.Parent = handle
- box.LineThickness = 0.025
- local g = 0
- local b = 120
- local t = 0
- local increment = 4
- local increase1,increase2,increase3 = true,false,true
- game:GetService("RunService").Stepped:Connect(function()
- if g >= 120 then
- g = 120
- increase1 = false
- elseif 0 >= g then
- g = 0
- increase1 = true
- end
- if increase1 then
- g = g + increment
- elseif not increase1 then
- g = g - increment
- end
- if b >= 255 then
- b = 255
- increase2 = false
- elseif 120 >= b then
- b = 120
- increase2 = true
- end
- if increase2 then
- b = b + increment
- elseif not increase2 then
- b = b - increment
- end
- if t >= 255 then
- t = 255
- increase3 = false
- elseif 150 >= t then
- t = 150
- increase3 = true
- end
- if increase3 then
- t = t + increment
- elseif not increase3 then
- t = t - increment
- end
- box.Color3 = Color3.fromRGB(0,g,b)
- box.SurfaceColor3 = Color3.fromRGB(0,g,b)
- box.SurfaceTransparency = (t/255)
- end)
- end
- warn([[
- AlmightyToast's Totem
- - press e to auto equip
- ]])
- local totem = nil
- local left = 10
- local oldchar = nil
- local auto = false
- local oldpos = CFrame.new()
- local remote = Instance.new("RemoteEvent")
- remote.Name = "KrY's Totem"
- remote.Parent = owner['PlayerGui']
- local code = [[
- plr = game:GetService("Players").LocalPlayer
- mouse = plr:GetMouse()
- remote = script.Parent
- mouse.KeyDown:Connect(function(k)
- if k == 'e' then
- remote:FireServer()
- end
- end)
- ]]
- NLS(code,remote)
- remote.OnServerEvent:Connect(function(plr)
- auto = not auto
- end)
- function effect(p,h)
- local Part0 = Instance.new("Part")
- local ParticleEmitter1 = Instance.new("ParticleEmitter")
- Part0.Name = "effects"
- Part0.Parent = p
- Part0.CFrame = CFrame.new(-5.20499992, 2.68487453, -24.0999928, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part0.Position = Vector3.new(-5.20499992, 2.68487453, -24.0999928)
- Part0.Transparency = 1
- Part0.Size = Vector3.new(2.39999962, 5.17000914, 0.970000446)
- Part0.BottomSurface = Enum.SurfaceType.Smooth
- Part0.TopSurface = Enum.SurfaceType.Smooth
- Part0.Anchored = false
- ParticleEmitter1.Parent = Part0
- ParticleEmitter1.Speed = NumberRange.new(2, 2)
- ParticleEmitter1.Color = ColorSequence.new(Color3.new(0.666667, 0, 0),Color3.new(1, 0, 0),Color3.new(0.309804, 1, 0.898039))
- ParticleEmitter1.LightEmission = 0.80000001192093
- ParticleEmitter1.Texture = "http://www.roblox.com/asset/?id=241650934"
- ParticleEmitter1.Size = NumberSequence.new(1,0)
- ParticleEmitter1.Lifetime = NumberRange.new(1, 1)
- ParticleEmitter1.LockedToPart = true
- ParticleEmitter1.Rate = 250
- ParticleEmitter1.SpreadAngle = Vector2.new(45, 45)
- ParticleEmitter1.VelocitySpread = 45
- local tempweld = Instance.new("Weld")
- tempweld.Parent = Part0
- tempweld.Part0 = p
- tempweld.Part1 = Part0
- tempweld.C0 = p.CFrame:Inverse()
- tempweld.C1 = Part0.CFrame:Inverse()
- tempweld.C0 = CFrame.new(0,0,0)
- spawn(function()
- ParticleEmitter1.Enabled = true
- wait(1)
- ParticleEmitter1.Rate = 100
- wait(.5)
- ParticleEmitter1.Rate = 50
- wait(.5)
- ParticleEmitter1.Rate = 0
- wait(2)
- Part0:Destroy()
- tempweld:Destroy()
- ParticleEmitter1.Enabled = false
- end)
- end
- function spawntotem()
- local plr = owner
- local char = plr.Character
- local torso = char:FindFirstChild("HumanoidRootPart")
- local hum = char:FindFirstChildOfClass("Humanoid")
- local holding = auto
- local died = false
- local function alive()
- local alive = false
- if char and char.Parent and torso and torso.Parent and hum and hum.Parent and hum.Health > 0 then
- alive = true
- end
- return alive
- end
- local function rebirth()
- hum.BreakJointsOnDeath = false
- plr:LoadCharacter()
- repeat wait() until plr.Character
- char = plr.Character
- torso = char:FindFirstChild("HumanoidRootPart")
- hum = char:FindFirstChildOfClass("Humanoid")
- local ff = char:FindFirstChildOfClass("ForceField")
- hum.Health = 20
- if ff then
- ff:Destroy()
- end
- if torso then
- torso.Velocity = Vector3.new()
- torso.CFrame = oldpos
- end
- if hum then
- hum.Sit = false
- hum.PlatformStand = false
- hum:SetStateEnabled(Enum.HumanoidStateType.FallingDown, false)
- hum:SetStateEnabled(Enum.HumanoidStateType.Ragdoll, false)
- end
- spawn(function()
- local o1 = Instance.new("Part")
- local o2 = Instance.new("ParticleEmitter")
- o1.Name = "effects"
- o1.Parent = char
- o1.Transparency = 1
- o1.Rotation = Vector3.new(0.0500000007, 0, -0.0199999996)
- o1.Size = Vector3.new(2.39999962, 5.17000914, 0.970000446)
- o1.CFrame = CFrame.new(-0.00269600004, 2.58585, 0.00243000011, 0.99999994, 0.000345684297, 6.2623044e-06, -0.000345678796, 0.999999583, -0.000859424355, -6.5593913e-06, 0.000859422144, 0.999999642)
- o1.BottomSurface = Enum.SurfaceType.Smooth
- o1.TopSurface = Enum.SurfaceType.Smooth
- o2.Parent = o1
- o2.Size = NumberSequence.new(0.74999988079071,0.5,0)
- o2.Color = ColorSequence.new(Color3.new(0.666667, 0.666667, 0.666667),Color3.new(0.666667, 0.666667, 0.666667))
- o2.LightEmission = 0.80000001192093
- o2.Texture = "rbxassetid://3552571288"
- o2.Lifetime = NumberRange.new(2,2)
- o2.Rate = 1
- o2.RotSpeed = NumberRange.new(270,270)
- o2.Speed = NumberRange.new(1.5,1.5)
- o2.VelocitySpread = 45
- o2.Color = ColorSequence.new(Color3.new(0.666667, 0.666667, 0.666667),Color3.new(0.666667, 0.666667, 0.666667))
- local tempweld2 = Instance.new("Weld")
- tempweld2.Parent = o1
- tempweld2.Part0 = torso
- tempweld2.Part1 = o1
- game:GetService("Debris"):AddItem(o1,7)
- local regen = true
- spawn(function()
- while regen and (hum.Health > 0) do
- wait(0.25)
- hum.Health = hum.Health + 5
- end
- end)
- wait(5)
- regen = false
- end)
- spawn(function()
- local o1 = Instance.new("Part")
- local o2 = Instance.new("Attachment")
- local o3 = Instance.new("ParticleEmitter")
- local o4 = Instance.new("ParticleEmitter")
- o1.Parent = workspace
- o1.Transparency = 1
- o1.Anchored = true
- o1.CanCollide = false
- o1.Size = Vector3.new(25, 1, 25)
- o1.Position = oldpos.Position - Vector3.new(0,2.5,0)
- o1.BottomSurface = Enum.SurfaceType.Smooth
- o1.TopSurface = Enum.SurfaceType.Smooth
- o2.Parent = o1
- o3.Parent = o2
- o3.Size = NumberSequence.new(0.24999976158142,0.37499964237213,0)
- o3.Color = ColorSequence.new(Color3.new(0.333333, 1, 0),Color3.new(0.333333, 1, 0),Color3.new(0, 0.666667, 0),Color3.new(0, 1, 0),Color3.new(0.333333, 1, 0.498039),Color3.new(0.519689, 1, 0.139219),Color3.new(1, 0.333333, 0),Color3.new(1, 1, 0),Color3.new(0.333333, 1, 0.498039),Color3.new(0, 1, 0),Color3.new(1, 0.666667, 0),Color3.new(1, 1, 0.498039))
- o3.LightEmission = 0.75
- o3.Texture = "rbxassetid://2434785466"
- o3.Acceleration = Vector3.new(0, -25, 0)
- o3.Lifetime = NumberRange.new(3,3)
- o3.Rate = 300
- o3.Speed = NumberRange.new(25,25)
- o3.VelocitySpread = 45
- o3.Color = ColorSequence.new(Color3.new(0.333333, 1, 0),Color3.new(0.333333, 1, 0),Color3.new(0, 0.666667, 0),Color3.new(0, 1, 0),Color3.new(0.333333, 1, 0.498039),Color3.new(0.519689, 1, 0.139219),Color3.new(1, 0.333333, 0),Color3.new(1, 1, 0),Color3.new(0.333333, 1, 0.498039),Color3.new(0, 1, 0),Color3.new(1, 0.666667, 0),Color3.new(1, 1, 0.498039))
- o4.Parent = o1
- o4.Size = NumberSequence.new(0.24999976158142,0.37499964237213,0)
- o4.Color = ColorSequence.new(Color3.new(0.333333, 1, 0),Color3.new(0.333333, 1, 0),Color3.new(0, 0.666667, 0),Color3.new(0, 1, 0),Color3.new(0.333333, 1, 0.498039),Color3.new(0.519689, 1, 0.139219),Color3.new(1, 0.333333, 0),Color3.new(1, 1, 0),Color3.new(0.333333, 1, 0.498039),Color3.new(0, 1, 0),Color3.new(1, 0.666667, 0),Color3.new(1, 1, 0.498039))
- o4.LightEmission = 0.75
- o4.Texture = "rbxassetid://2434785466"
- o4.Lifetime = NumberRange.new(3,3)
- o4.Rate = 100
- o4.Speed = NumberRange.new(0,0)
- o4.Color = ColorSequence.new(Color3.new(0.333333, 1, 0),Color3.new(0.333333, 1, 0),Color3.new(0, 0.666667, 0),Color3.new(0, 1, 0),Color3.new(0.333333, 1, 0.498039),Color3.new(0.519689, 1, 0.139219),Color3.new(1, 0.333333, 0),Color3.new(1, 1, 0),Color3.new(0.333333, 1, 0.498039),Color3.new(0, 1, 0),Color3.new(1, 0.666667, 0),Color3.new(1, 1, 0.498039))
- local sound = Instance.new("Sound")
- sound.Parent = o1
- sound.SoundId = "rbxassetid://3552283822"
- sound.Volume = 1.5
- sound:Play()
- wait(2)
- o4.Enabled = false
- o3.Enabled = false
- end)
- --effect(torso,hum)
- spawn_32k()
- spawntotem()
- end
- totem = Instance.new("Tool")
- local o2 = Instance.new("Part")
- local o3 = Instance.new("Decal")
- local o4 = Instance.new("Decal")
- local o5 = Instance.new("Part")
- totem.Name = "Totem of Undying"
- totem.Parent = plr.Backpack
- o2.Name = "part"
- o2.Parent = totem
- o2.Transparency = 1
- o2.Rotation = Vector3.new(-82.4100037, 1.04999995, 17.8500004)
- o2.Size = Vector3.new(0.600000024, 0.0500000007, 1.25)
- o2.CFrame = CFrame.new(14.8800182, 0.663631022, 12.8549995, 0.951727092, -0.306400239, 0.01828775, 0.0232320018, 0.131314978, 0.991068482, -0.306065023, -0.942801833, 0.132094339)
- o2.BottomSurface = Enum.SurfaceType.Smooth
- o2.TopSurface = Enum.SurfaceType.Smooth
- o3.Parent = o2
- o3.Texture = "rbxassetid://3551524140"
- o3.Face = Enum.NormalId.Top
- o4.Parent = o2
- o4.Texture = "rbxassetid://3551524140"
- o4.Face = Enum.NormalId.Bottom
- o5.Name = "Handle"
- o5.Parent = totem
- o5.Transparency = 1
- o5.Rotation = Vector3.new(-68.7200012, 5.36999989, -29.9599991)
- o5.Size = Vector3.new(0.100000001, 0.100000001, 0.100000001)
- o5.CFrame = CFrame.new(14.9258261, 0.462755978, 12.3108463, 0.862572074, 0.497210532, 0.0935470909, -0.256796867, 0.270954847, 0.927706182, 0.435918272, -0.824236095, 0.361400247)
- o5.BottomSurface = Enum.SurfaceType.Smooth
- o5.TopSurface = Enum.SurfaceType.Smooth
- for i,v in pairs(totem:GetDescendants()) do
- if v:IsA("Part") then
- v.CanCollide = false
- v.Massless = true
- end
- end
- totem.CanBeDropped = false
- local w1 = Instance.new("Weld")
- w1.Parent = o5
- w1.Part0 = o5
- w1.Part1 = o2
- w1.C0 = o5.CFrame:Inverse()
- w1.C1 = o2.CFrame:Inverse()
- w1.C0 = CFrame.new(-15,0.2,-12.6)
- spawn(function()
- while not died do
- game:GetService("RunService").Heartbeat:Wait(1/30)
- if alive() then
- oldpos = torso.CFrame
- end
- if totem and auto then
- totem.Parent = char
- end
- if not alive() then
- died = true
- end
- if not alive() and (holding or auto) and (left > 0) then
- left = left - 1
- rebirth()
- end
- end
- end)
- totem.Unequipped:Connect(function()
- holding = false
- end)
- totem.Equipped:Connect(function()
- holding = true
- end)
- end
- spawn_32k()
- spawntotem()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement