Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --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")
- Hat1 = Instance.new("Hat")
- Model2 = Instance.new("Model")
- Part3 = Instance.new("Part")
- SpecialMesh4 = Instance.new("SpecialMesh")
- Part5 = Instance.new("Part")
- SpecialMesh6 = Instance.new("SpecialMesh")
- Part7 = Instance.new("Part")
- SpecialMesh8 = Instance.new("SpecialMesh")
- Part9 = Instance.new("Part")
- SpecialMesh10 = Instance.new("SpecialMesh")
- Part11 = Instance.new("Part")
- SpecialMesh12 = Instance.new("SpecialMesh")
- Part13 = Instance.new("Part")
- SpecialMesh14 = Instance.new("SpecialMesh")
- Part15 = Instance.new("Part")
- SpecialMesh16 = Instance.new("SpecialMesh")
- Part17 = Instance.new("Part")
- SpecialMesh18 = Instance.new("SpecialMesh")
- Part19 = Instance.new("Part")
- SpecialMesh20 = Instance.new("SpecialMesh")
- Part21 = Instance.new("Part")
- SpecialMesh22 = Instance.new("SpecialMesh")
- Seat23 = Instance.new("Seat")
- Part24 = Instance.new("Part")
- SpecialMesh25 = Instance.new("SpecialMesh")
- RocketPropulsion26 = Instance.new("RocketPropulsion")
- RemoteFunction27 = Instance.new("RemoteFunction")
- Script28 = Instance.new("Script")
- LocalScript29 = Instance.new("LocalScript")
- Backpack30 = Instance.new("Backpack")
- HopperBin31 = Instance.new("HopperBin")
- LocalScript32 = Instance.new("LocalScript")
- HopperBin33 = Instance.new("HopperBin")
- Sound34 = Instance.new("Sound")
- LocalScript35 = Instance.new("LocalScript")
- HopperBin36 = Instance.new("HopperBin")
- Sound37 = Instance.new("Sound")
- LocalScript38 = Instance.new("LocalScript")
- ObjectValue39 = Instance.new("ObjectValue")
- Weld40 = Instance.new("Weld")
- Weld41 = Instance.new("Weld")
- Weld42 = Instance.new("Weld")
- Weld43 = Instance.new("Weld")
- Weld44 = Instance.new("Weld")
- Weld45 = Instance.new("Weld")
- Weld46 = Instance.new("Weld")
- Weld47 = Instance.new("Weld")
- Weld48 = Instance.new("Weld")
- Weld49 = Instance.new("Weld")
- Weld50 = Instance.new("Weld")
- Weld51 = Instance.new("Weld")
- Tool52 = Instance.new("Tool")
- Part53 = Instance.new("Part")
- SpecialMesh54 = Instance.new("SpecialMesh")
- Sound55 = Instance.new("Sound")
- ManualWeld56 = Instance.new("ManualWeld")
- LocalScript57 = Instance.new("LocalScript")
- Script58 = Instance.new("Script")
- Model0.Parent = mas
- Hat1.Name = "TeapotTurret"
- Hat1.Parent = Model0
- Hat1.AttachmentPos = Vector3.new(0, 0.25, 0.100000001)
- Model2.Name = "TeapotVehicle"
- Model2.Parent = Hat1
- Model2.PrimaryPart = Part3
- Part3.Name = "Handle"
- Part3.Parent = Model2
- Part3.Rotation = Vector3.new(-90, 89.8399963, -90)
- Part3.RotVelocity = Vector3.new(6.08332275e-20, 4.26090527, 1.26058997e-20)
- Part3.Velocity = Vector3.new(6.61759949, -0.631815135, -6.75644112)
- Part3.Anchored = true
- Part3.FormFactor = Enum.FormFactor.Plate
- Part3.Size = Vector3.new(2, 1.60000002, 2)
- Part3.CFrame = CFrame.new(-58.0000153, -31.0135288, 40.4999695, -4.51801401e-32, 1.4610643e-21, 0.999995887, -6.27548846e-11, 1, 1.46106481e-21, -0.999991775, 6.27548846e-11, 4.51801401e-32)
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.Position = Vector3.new(-58.0000153, -31.0135288, 40.4999695)
- Part3.Orientation = Vector3.new(0, 90, 0)
- SpecialMesh4.Parent = Part3
- SpecialMesh4.MeshId = "http://www.roblox.com/asset/?id=1045320"
- SpecialMesh4.Scale = Vector3.new(3, 3, 3)
- SpecialMesh4.MeshType = Enum.MeshType.FileMesh
- SpecialMesh4.Scale = Vector3.new(3, 3, 3)
- Part5.Name = "Handle"
- Part5.Parent = Model2
- Part5.Rotation = Vector3.new(-90, 89.8399963, -90)
- Part5.RotVelocity = Vector3.new(6.08332275e-20, 4.26090527, 1.26058997e-20)
- Part5.Velocity = Vector3.new(6.75757122, -0.631815135, 1.76421738)
- Part5.Anchored = true
- Part5.FormFactor = Enum.FormFactor.Plate
- Part5.Size = Vector3.new(2, 1.60000002, 2)
- Part5.CFrame = CFrame.new(-60.0000153, -31.0135288, 40.4999695, -4.51801401e-32, 1.4610643e-21, 0.999995887, -6.27548846e-11, 1, 1.46106481e-21, -0.999991775, 6.27548846e-11, 4.51801401e-32)
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.TopSurface = Enum.SurfaceType.Smooth
- Part5.Position = Vector3.new(-60.0000153, -31.0135288, 40.4999695)
- Part5.Orientation = Vector3.new(0, 90, 0)
- SpecialMesh6.Parent = Part5
- SpecialMesh6.MeshId = "http://www.roblox.com/asset/?id=1045320"
- SpecialMesh6.Scale = Vector3.new(3, 3, 3)
- SpecialMesh6.MeshType = Enum.MeshType.FileMesh
- SpecialMesh6.Scale = Vector3.new(3, 3, 3)
- Part7.Name = "back"
- Part7.Parent = Model2
- Part7.Rotation = Vector3.new(-90, 89.8399963, -90)
- Part7.RotVelocity = Vector3.new(6.08332275e-20, 4.26090527, 1.26058997e-20)
- Part7.Velocity = Vector3.new(-1.90305698, -0.631815135, -6.61647224)
- Part7.Anchored = true
- Part7.FormFactor = Enum.FormFactor.Plate
- Part7.Size = Vector3.new(2, 1.60000002, 2)
- Part7.CFrame = CFrame.new(-58.0000153, -31.0135288, 38.4999847, -4.51801401e-32, 1.4610643e-21, 0.999995887, -6.27548846e-11, 1, 1.46106481e-21, -0.999991775, 6.27548846e-11, 4.51801401e-32)
- Part7.BottomSurface = Enum.SurfaceType.Smooth
- Part7.TopSurface = Enum.SurfaceType.Smooth
- Part7.Position = Vector3.new(-58.0000153, -31.0135288, 38.4999847)
- Part7.Orientation = Vector3.new(0, 90, 0)
- SpecialMesh8.Parent = Part7
- SpecialMesh8.MeshId = "http://www.roblox.com/asset/?id=1045320"
- SpecialMesh8.Scale = Vector3.new(3, 3, 3)
- SpecialMesh8.MeshType = Enum.MeshType.FileMesh
- SpecialMesh8.Scale = Vector3.new(3, 3, 3)
- Part9.Name = "Handle"
- Part9.Parent = Model2
- Part9.Rotation = Vector3.new(-90, 89.8399963, -90)
- Part9.RotVelocity = Vector3.new(6.08332275e-20, 4.26090527, 1.26058997e-20)
- Part9.Velocity = Vector3.new(-1.76309323, -0.631815135, 1.90350723)
- Part9.Anchored = true
- Part9.FormFactor = Enum.FormFactor.Plate
- Part9.Size = Vector3.new(2, 0.400000006, 2)
- Part9.CFrame = CFrame.new(-60.0000153, -31.2135391, 38.4999847, -4.51801401e-32, 1.4610643e-21, 0.999995887, -6.27548846e-11, 1, 1.46106481e-21, -0.999991775, 6.27548846e-11, 4.51801401e-32)
- Part9.BottomSurface = Enum.SurfaceType.Smooth
- Part9.TopSurface = Enum.SurfaceType.Smooth
- Part9.Position = Vector3.new(-60.0000153, -31.2135391, 38.4999847)
- Part9.Orientation = Vector3.new(0, 90, 0)
- SpecialMesh10.Parent = Part9
- SpecialMesh10.MeshId = "http://www.roblox.com/asset/?id=1045320"
- SpecialMesh10.Scale = Vector3.new(3, 3, 3)
- SpecialMesh10.MeshType = Enum.MeshType.FileMesh
- SpecialMesh10.Scale = Vector3.new(3, 3, 3)
- Part11.Name = "Handle"
- Part11.Parent = Model2
- Part11.Rotation = Vector3.new(-90, 89.8399963, -90)
- Part11.Anchored = true
- Part11.FormFactor = Enum.FormFactor.Plate
- Part11.Size = Vector3.new(2, 1.60000002, 2)
- Part11.CFrame = CFrame.new(-58.0000153, -31.0135288, 36.5, -4.51801401e-32, 1.4610643e-21, 0.999995887, -6.27548846e-11, 1, 1.46106481e-21, -0.999991775, 6.27548846e-11, 4.51801401e-32)
- Part11.BottomSurface = Enum.SurfaceType.Smooth
- Part11.TopSurface = Enum.SurfaceType.Smooth
- Part11.Position = Vector3.new(-58.0000153, -31.0135288, 36.5)
- Part11.Orientation = Vector3.new(0, 90, 0)
- SpecialMesh12.Parent = Part11
- SpecialMesh12.MeshId = "http://www.roblox.com/asset/?id=1045320"
- SpecialMesh12.Scale = Vector3.new(3, 3, 3)
- SpecialMesh12.MeshType = Enum.MeshType.FileMesh
- SpecialMesh12.Scale = Vector3.new(3, 3, 3)
- Part13.Name = "Handle"
- Part13.Parent = Model2
- Part13.Rotation = Vector3.new(-90, 89.8399963, -90)
- Part13.RotVelocity = Vector3.new(6.08332275e-20, 4.26090527, 1.26058997e-20)
- Part13.Velocity = Vector3.new(-10.2837496, -0.631815135, 2.04415512)
- Part13.Anchored = true
- Part13.FormFactor = Enum.FormFactor.Plate
- Part13.Size = Vector3.new(2, 1.60000002, 2)
- Part13.CFrame = CFrame.new(-60.0000153, -31.0135288, 36.5, -4.51801401e-32, 1.4610643e-21, 0.999995887, -6.27548846e-11, 1, 1.46106481e-21, -0.999991775, 6.27548846e-11, 4.51801401e-32)
- Part13.BottomSurface = Enum.SurfaceType.Smooth
- Part13.TopSurface = Enum.SurfaceType.Smooth
- Part13.Position = Vector3.new(-60.0000153, -31.0135288, 36.5)
- Part13.Orientation = Vector3.new(0, 90, 0)
- SpecialMesh14.Parent = Part13
- SpecialMesh14.MeshId = "http://www.roblox.com/asset/?id=1045320"
- SpecialMesh14.Scale = Vector3.new(3, 3, 3)
- SpecialMesh14.MeshType = Enum.MeshType.FileMesh
- SpecialMesh14.Scale = Vector3.new(3, 3, 3)
- Part15.Name = "Handle"
- Part15.Parent = Model2
- Part15.Rotation = Vector3.new(-90, 89.8399963, -90)
- Part15.RotVelocity = Vector3.new(6.08332275e-20, 4.26090527, 1.26058997e-20)
- Part15.Velocity = Vector3.new(-1.62312138, -0.631815135, 10.4262009)
- Part15.Anchored = true
- Part15.FormFactor = Enum.FormFactor.Plate
- Part15.Size = Vector3.new(2, 1.60000002, 2)
- Part15.CFrame = CFrame.new(-62, -30.6135368, 38.4999847, -4.51801401e-32, 1.4610643e-21, 0.999995887, -6.27548846e-11, 1, 1.46106481e-21, -0.999991775, 6.27548846e-11, 4.51801401e-32)
- Part15.BottomSurface = Enum.SurfaceType.Smooth
- Part15.TopSurface = Enum.SurfaceType.Smooth
- Part15.Position = Vector3.new(-62, -30.6135368, 38.4999847)
- Part15.Orientation = Vector3.new(0, 90, 0)
- SpecialMesh16.Parent = Part15
- SpecialMesh16.MeshId = "http://www.roblox.com/asset/?id=1045320"
- SpecialMesh16.Scale = Vector3.new(3, 3, 3)
- SpecialMesh16.MeshType = Enum.MeshType.FileMesh
- SpecialMesh16.Scale = Vector3.new(3, 3, 3)
- Part17.Name = "Handle"
- Part17.Parent = Model2
- Part17.Rotation = Vector3.new(-90, 89.8399963, -90)
- Part17.RotVelocity = Vector3.new(6.08332275e-20, 4.26090527, 1.26058997e-20)
- Part17.Velocity = Vector3.new(6.89754295, -0.631815135, 10.284874)
- Part17.Anchored = true
- Part17.FormFactor = Enum.FormFactor.Plate
- Part17.Size = Vector3.new(2, 1.60000002, 2)
- Part17.CFrame = CFrame.new(-62, -31.0135288, 40.4999695, -4.51801401e-32, 1.4610643e-21, 0.999995887, -6.27548846e-11, 1, 1.46106481e-21, -0.999991775, 6.27548846e-11, 4.51801401e-32)
- Part17.BottomSurface = Enum.SurfaceType.Smooth
- Part17.TopSurface = Enum.SurfaceType.Smooth
- Part17.Position = Vector3.new(-62, -31.0135288, 40.4999695)
- Part17.Orientation = Vector3.new(0, 90, 0)
- SpecialMesh18.Parent = Part17
- SpecialMesh18.MeshId = "http://www.roblox.com/asset/?id=1045320"
- SpecialMesh18.Scale = Vector3.new(3, 3, 3)
- SpecialMesh18.MeshType = Enum.MeshType.FileMesh
- SpecialMesh18.Scale = Vector3.new(3, 3, 3)
- Part19.Name = "Handle"
- Part19.Parent = Model2
- Part19.Rotation = Vector3.new(-90, 89.8399963, -90)
- Part19.Anchored = true
- Part19.FormFactor = Enum.FormFactor.Plate
- Part19.Size = Vector3.new(2, 1.60000002, 2)
- Part19.CFrame = CFrame.new(-62, -31.0135288, 36.5, -4.51801401e-32, 1.4610643e-21, 0.999995887, -6.27548846e-11, 1, 1.46106481e-21, -0.999991775, 6.27548846e-11, 4.51801401e-32)
- Part19.BottomSurface = Enum.SurfaceType.Smooth
- Part19.TopSurface = Enum.SurfaceType.Smooth
- Part19.Position = Vector3.new(-62, -31.0135288, 36.5)
- Part19.Orientation = Vector3.new(0, 90, 0)
- SpecialMesh20.Parent = Part19
- SpecialMesh20.MeshId = "http://www.roblox.com/asset/?id=1045320"
- SpecialMesh20.Scale = Vector3.new(3, 3, 3)
- SpecialMesh20.MeshType = Enum.MeshType.FileMesh
- SpecialMesh20.Scale = Vector3.new(3, 3, 3)
- Part21.Name = "Front"
- Part21.Parent = Model2
- Part21.Rotation = Vector3.new(-90, 89.8399963, -90)
- Part21.RotVelocity = Vector3.new(6.08332275e-20, 4.26090527, 1.26058997e-20)
- Part21.Velocity = Vector3.new(-1.48314953, -0.631815135, 18.9468594)
- Part21.Anchored = true
- Part21.FormFactor = Enum.FormFactor.Plate
- Part21.Size = Vector3.new(2, 1.60000002, 2)
- Part21.CFrame = CFrame.new(-63.9999847, -30.6135368, 38.4999847, -4.51801401e-32, 1.4610643e-21, 0.999995887, -6.27548846e-11, 1, 1.46106481e-21, -0.999991775, 6.27548846e-11, 4.51801401e-32)
- Part21.BottomSurface = Enum.SurfaceType.Smooth
- Part21.TopSurface = Enum.SurfaceType.Smooth
- Part21.Position = Vector3.new(-63.9999847, -30.6135368, 38.4999847)
- Part21.Orientation = Vector3.new(0, 90, 0)
- SpecialMesh22.Parent = Part21
- SpecialMesh22.MeshId = "http://www.roblox.com/asset/?id=1045320"
- SpecialMesh22.Scale = Vector3.new(3, 3, 3)
- SpecialMesh22.MeshType = Enum.MeshType.FileMesh
- SpecialMesh22.Scale = Vector3.new(3, 3, 3)
- Seat23.Parent = Model2
- Seat23.Transparency = 1
- Seat23.Rotation = Vector3.new(-90, 89.8399963, -90)
- Seat23.RotVelocity = Vector3.new(6.08332275e-20, 4.26090527, 1.26058997e-20)
- Seat23.Velocity = Vector3.new(-1.76309323, -0.631815135, 1.90486336)
- Seat23.Anchored = true
- Seat23.FormFactor = Enum.FormFactor.Plate
- Seat23.Size = Vector3.new(2, 0.400000006, 2)
- Seat23.CFrame = CFrame.new(-60.0000153, -30.81353, 38.4999847, -4.51801401e-32, 1.4610643e-21, 0.999995887, -6.27548846e-11, 1, 1.46106481e-21, -0.999991775, 6.27548846e-11, 4.51801401e-32)
- Seat23.Position = Vector3.new(-60.0000153, -30.81353, 38.4999847)
- Seat23.Orientation = Vector3.new(0, 90, 0)
- Part24.Name = "Handle"
- Part24.Parent = Hat1
- Part24.BrickColor = BrickColor.new("Cool yellow")
- Part24.Rotation = Vector3.new(180, -23.6199989, -180)
- Part24.RotVelocity = Vector3.new(8.4264061e-25, 3.72885967e-22, 5.50971025e-25)
- Part24.Velocity = Vector3.new(3.65131998e-20, 0.00671230676, 3.64665255e-20)
- Part24.Anchored = true
- Part24.Locked = true
- Part24.FormFactor = Enum.FormFactor.Plate
- Part24.Size = Vector3.new(2, 1.60000002, 2)
- Part24.CFrame = CFrame.new(-53.6243019, -36.4648056, 34.4369431, -0.916248977, 3.7252903e-09, -0.400598884, 0, 1, -9.31322575e-10, 0.400597215, 2.32830644e-10, -0.916245341)
- Part24.BottomSurface = Enum.SurfaceType.Smooth
- Part24.TopSurface = Enum.SurfaceType.Smooth
- Part24.Color = Color3.new(0.992157, 0.917647, 0.552941)
- Part24.Position = Vector3.new(-53.6243019, -36.4648056, 34.4369431)
- Part24.Orientation = Vector3.new(0, -156.37999, 0)
- Part24.Color = Color3.new(0.992157, 0.917647, 0.552941)
- SpecialMesh25.Parent = Part24
- SpecialMesh25.MeshId = "http://www.roblox.com/asset/?id=1045320"
- SpecialMesh25.Scale = Vector3.new(3, 3, 3)
- SpecialMesh25.MeshType = Enum.MeshType.FileMesh
- SpecialMesh25.Scale = Vector3.new(3, 3, 3)
- RocketPropulsion26.Name = "Homing"
- RocketPropulsion26.Parent = Part24
- RocketPropulsion26.MaxSpeed = 25
- RocketPropulsion26.CartoonFactor = 1
- RocketPropulsion26.MaxThrust = 40000000000
- RocketPropulsion26.ThrustD = 3
- RocketPropulsion26.ThrustP = 30
- RocketPropulsion26.MaxTorque = Vector3.new(3.99999995e+15, 3.99999995e+15, 3.99999995e+15)
- RocketPropulsion26.TurnD = 4000
- RocketPropulsion26.TurnP = 20000
- RemoteFunction27.Name = "MouseConnection"
- RemoteFunction27.Parent = Part24
- Script28.Name = "Massive"
- Script28.Parent = Part24
- table.insert(cors,sandbox(Script28,function()
- --Made by Luckymaxer
- Handle = script.Parent
- Hat = Handle.Parent
- Tools = Handle:WaitForChild("Tools")
- ControllingPlayer = Handle:WaitForChild("ControllingPlayer")
- TeapotVehicle = Hat:FindFirstChild("TeapotVehicle")
- Delay(2, function()
- if TeapotVehicle then
- TeapotVehicle:Destroy()
- end
- end)
- GravityHammer = Hat:WaitForChild("GravityHammer")
- GravityHammerHandle = GravityHammer:WaitForChild("Handle")
- Homing = Handle:WaitForChild("Homing")
- MouseConnection = Handle:WaitForChild("MouseConnection")
- ControlScript = script:WaitForChild("ControlScript")
- Players = game:GetService("Players")
- Debris = game:GetService("Debris")
- PlayerTools = {}
- Debounce = false
- for i, v in pairs(Handle:GetChildren()) do
- if v:IsA("JointInstance") then
- v:Destroy()
- end
- end
- function GetPlayer()
- if not Player or (not ControllingPlayer.Value or Player == ControllingPlayer.Value) then
- Character = Hat.Parent
- local TempPlayer = Players:GetPlayerFromCharacter(Character)
- if TempPlayer then
- Backpack = TempPlayer:FindFirstChild("Backpack")
- if Backpack then
- Player = TempPlayer
- ControllingPlayer.Value = Player
- PlayerControlScript = ControlScript:Clone()
- MouseConnectionValue = Instance.new("ObjectValue")
- MouseConnectionValue.Name = MouseConnection.Name
- MouseConnectionValue.Value = MouseConnection
- MouseConnectionValue.Parent = PlayerControlScript
- PlayerControlScript.Disabled = false
- PlayerControlScript.Parent = Backpack
- MouseConnection.OnServerInvoke = (function(Player, Script, Action, Value)
- if Script and Script ~= PlayerControlScript then
- Script.Disabled = true
- Script:Destroy()
- else
- if Action == "KeyDown" then
- if Value == "q" then
- GiveTeapot(Player)
- end
- elseif Action == "KeyUp" then
- elseif Action == "Button1Down" then
- elseif Action == "Button1Up" then
- end
- end
- end)
- Character.Changed:connect(function(Property)
- if Property == "Parent" and not Character.Parent then
- Hat:Destroy()
- end
- end)
- end
- end
- end
- end
- function TagHumanoid(humanoid, player)
- local Creator_Tag = Instance.new("ObjectValue")
- Creator_Tag.Name = "creator"
- Creator_Tag.Value = player
- Debris:AddItem(Creator_Tag, 2)
- Creator_Tag.Parent = humanoid
- end
- function UntagHumanoid(humanoid)
- for i, v in pairs(humanoid:GetChildren()) do
- if v:IsA("ObjectValue") and v.Name == "creator" then
- v:Destroy()
- end
- end
- end
- function FindCharacterAncestor(Parent)
- if Parent and Parent ~= game:GetService("Workspace") then
- local humanoid = Parent:FindFirstChild("Humanoid")
- if humanoid then
- return Parent, humanoid
- else
- return FindCharacterAncestor(Parent.Parent)
- end
- end
- return nil
- end
- function TeapotTouched(Pot, Hit)
- if Hit and Hit.Parent and Hit ~= Handle and Hat.Parent ~= Character and not Debounce then
- local character, humanoid = FindCharacterAncestor(Hit)
- if character ~= Character and humanoid and humanoid.Health > 0 then
- Debounce = true
- local Explosion = Instance.new("Explosion")
- Explosion.BlastRadius = 50
- Explosion.BlastPressure = 0
- Explosion.Hit:connect(function(Hit2)
- if Hit2 ~= Handle then
- local character, humanoid = FindCharacterAncestor(Hit2)
- if character ~= Character and humanoid and humanoid.Health > 0 then
- UntagHumanoid(humanoid)
- TagHumanoid(humanoid, Player)
- Hit2:BreakJoints()
- end
- end
- end)
- Explosion.Position = Pot.Position
- Explosion.Parent = game:GetService("Workspace")
- wait(0.5)
- Debounce = false
- elseif character == Character then
- if Handle.Parent ~= Hat then
- Homing:Abort()
- Handle.Parent = Hat
- Hat.Parent = Character
- Handle.CanCollide = true
- end
- Hat.Parent = Character
- end
- end
- end
- function GiveTeapot(Player)
- if Player and Hat.Parent ~= Character then
- local Character = Player.Character
- if Character then
- local Torso = Character:FindFirstChild("Torso")
- if Torso then
- Handle.CanCollide = false
- local Position = Torso.CFrame + Vector3.new(0, 1000, 0)
- Handle.Elasticity = 0.1
- Homing.Target = Torso
- Homing:Fire()
- Homing.ThrustP = 50000
- Homing.MaxTorque = Vector3.new(0, 0, 0)
- Homing.TurnP = 0
- end
- end
- end
- end
- function GiveTools()
- for i, v in pairs(PlayerTools) do
- if v and v.Parent then
- v:Destroy()
- end
- end
- PlayerTools = {}
- if Hat.Parent == Character then
- for i, v in pairs(Tools:GetChildren()) do
- local Tool = v:Clone()
- table.insert(PlayerTools, Tool)
- Tool.Parent = Backpack
- end
- end
- end
- Hat.Changed:connect(function(Property)
- if Property == "Parent" then
- if not Player then
- GetPlayer()
- end
- GiveTools()
- if Hat.Parent ~= Character then
- Spawn(function()
- wait()
- Handle.Parent = game:GetService("Workspace")
- Hat.Parent = nil
- end)
- end
- end
- end)
- GravityHammer.Changed:connect(function(Property)
- if Property == "Parent" then
- if GravityHammer.Parent ~= Backpack and GravityHammer.Parent ~= Character and GravityHammer.Parent ~= Hat then
- wait()
- GravityHammer.Parent = Hat
- end
- end
- end)
- GravityHammerHandle.Touched:connect(function(Hit)
- if Hit and Hit.Parent and GravityHammer.Parent ~= Character then
- local character, humanoid = FindCharacterAncestor(Hit)
- if character and character ~= Character and humanoid and humanoid.Health > 0 then
- UntagHumanoid(humanoid)
- TagHumanoid(humanoid, Player)
- humanoid.Health = 0
- end
- end
- end)
- GiveTools()
- Connection = Handle.Touched:connect(function(Hit)
- if Player then
- TeapotTouched(Handle, Hit)
- end
- end)
- GetPlayer()
- end))
- LocalScript29.Name = "ControlScript"
- LocalScript29.Parent = Script28
- LocalScript29.Disabled = true
- table.insert(cors,sandbox(LocalScript29,function()
- --Made by Luckymaxer
- Backpack = script.Parent
- Player = Backpack.Parent
- Mouse = Player:GetMouse()
- MouseConnection = script:WaitForChild("MouseConnection").Value
- Mouse.Button1Down:connect(function()
- MouseConnection:InvokeServer(script, "Button1Down", Mouse.Target)
- end)
- Mouse.Button1Up:connect(function()
- MouseConnection:InvokeServer(script, "Button1Up", Mouse.Target)
- end)
- Mouse.KeyDown:connect(function(Key)
- MouseConnection:InvokeServer(script, "KeyDown", Key)
- end)
- Mouse.KeyUp:connect(function(Key)
- MouseConnection:InvokeServer(script, "KeyUp", Key)
- end)
- end))
- Backpack30.Name = "Tools"
- Backpack30.Parent = Part24
- HopperBin31.Name = "Fire Shield"
- HopperBin31.Parent = Backpack30
- LocalScript32.Parent = HopperBin31
- table.insert(cors,sandbox(LocalScript32,function()
- --clockwork
- --Fix implemented by Luckymaxer
- HopperBin = script.Parent
- Debris = game:GetService("Debris")
- function GetX(t)
- return 41 * math.cos(t) - 18 * math.sin(t) - 83 * math.cos(2 * t) - 11 * math.cos(3 * t) + 27 * math.sin(3 * t)
- end
- function GetY(t)
- return 36 * math.cos(t) + 27 * math.sin(t) - 113 * math.cos(2 * t) + 30 * math.sin(2 * t) + 11 * math.cos(3 * t) - 27 * math.sin(3 * t)
- end
- function GetZ(t)
- return 45 * math.sin(t) - 30 * math.cos(2 * t) + 113 * math.sin(2 * t) - 11 * math.cos(3 * t) + 27 * math.sin(3 * t)
- end
- Template = Instance.new("Explosion")
- Template.BlastRadius = 3
- Template.BlastPressure = 0
- Template.ExplosionType = Enum.ExplosionType.NoCraters
- Spaw = false
- function TagHumanoid(humanoid, player)
- local Creator_Tag = Instance.new("ObjectValue")
- Creator_Tag.Name = "creator"
- Creator_Tag.Value = player
- Debris:AddItem(Creator_Tag, 2)
- Creator_Tag.Parent = humanoid
- end
- function UntagHumanoid(humanoid)
- for i, v in pairs(humanoid:GetChildren()) do
- if v:IsA("ObjectValue") and v.Name == "creator" then
- v:Destroy()
- end
- end
- end
- function FindCharacterAncestor(Parent)
- if Parent and Parent ~= game:GetService("Workspace") then
- local humanoid = Parent:FindFirstChild("Humanoid")
- if humanoid then
- return Parent, humanoid
- else
- return FindCharacterAncestor(Parent.Parent)
- end
- end
- return nil
- end
- function ExplosionHit(Explosion)
- Explosion.Hit:connect(function(Hit)
- if Hit and Hit.Parent then
- local character, humanoid = FindCharacterAncestor(Hit)
- if character and character ~= Character and humanoid and humanoid.Health > 0 then
- UntagHumanoid(humanoid)
- TagHumanoid(humanoid, Player)
- Hit:BreakJoints()
- end
- end
- end)
- end
- function Button1Down()
- Spaw = not Spaw
- i = 0
- if Spaw then
- while Spaw do
- i = (i + 0.15)
- local Explosion = Template:Clone()
- Explosion.Position = Torso.Position + Vector3.new(GetX(i) / 5, GetY(i) / 5, GetZ(i) / 5)
- ExplosionHit(Explosion)
- Explosion.Parent = game:GetService("Workspace")
- Explosion = Template:Clone()
- Explosion.Position = Torso.Position - Vector3.new(GetX(i) / 5, GetY(i) / 5, GetZ(i) / 5)
- ExplosionHit(Explosion)
- Explosion.Parent = game:GetService("Workspace")
- wait(0.025)
- end
- end
- end
- function Selected(Mouse)
- Backpack = HopperBin.Parent
- Player = Backpack.Parent
- Character = Player.Character
- Humanoid = Character:FindFirstChild("Humanoid")
- Torso = Character:FindFirstChild("Torso")
- if not Player or not Character or not Humanoid or Humanoid.Health == 0 or not Torso then
- return
- end
- Mouse.Button1Down:connect(function()
- Button1Down()
- end)
- Mouse.Icon = "rbxasset://textures\\GunCursor.png"
- end
- HopperBin.Selected:connect(Selected)
- end))
- HopperBin33.Name = "Katon Goukakyou No Jutsu"
- HopperBin33.Parent = Backpack30
- Sound34.Parent = HopperBin33
- Sound34.SoundId = "http://www.roblox.com/asset/?id=1079802"
- Sound34.Volume = 0.20000000298023
- LocalScript35.Parent = HopperBin33
- table.insert(cors,sandbox(LocalScript35,function()
- --clockwork
- --Fix implemented by Luckymaxer
- HopperBin = script.Parent
- Sound = HopperBin:WaitForChild("Sound")
- Debris = game:GetService("Debris")
- function TagHumanoid(humanoid, player)
- local Creator_Tag = Instance.new("ObjectValue")
- Creator_Tag.Name = "creator"
- Creator_Tag.Value = player
- Debris:AddItem(Creator_Tag, 2)
- Creator_Tag.Parent = humanoid
- end
- function UntagHumanoid(humanoid)
- for i, v in pairs(humanoid:GetChildren()) do
- if v:IsA("ObjectValue") and v.Name == "creator" then
- v:Destroy()
- end
- end
- end
- function FindCharacterAncestor(Parent)
- if Parent and Parent ~= game:GetService("Workspace") then
- local humanoid = Parent:FindFirstChild("Humanoid")
- if humanoid then
- return Parent, humanoid
- else
- return FindCharacterAncestor(Parent.Parent)
- end
- end
- return nil
- end
- function ExplosionHit(Explosion)
- Explosion.Hit:connect(function(Hit)
- if Hit and Hit.Parent then
- local character, humanoid = FindCharacterAncestor(Hit)
- if character and character ~= Character and humanoid and humanoid.Health > 0 then
- UntagHumanoid(humanoid)
- TagHumanoid(humanoid, Player)
- Hit:BreakJoints()
- end
- end
- end)
- end
- function Explode(Position)
- local Explosion = Instance.new("Explosion")
- Explosion.BlastRadius = 10
- Explosion.BlastPressure = 0
- Explosion.ExplosionType = Enum.ExplosionType.NoCraters
- Explosion.Position = Position
- ExplosionHit(Explosion)
- Explosion.Parent = game:GetService("Workspace")
- end
- function Button1Down(Mouse)
- local StartPos = Head.Position
- local Delta = Mouse.Hit.p - StartPos
- local Unit = Delta.unit
- Sound:Play()
- for i = 0, 75 do
- Explode(StartPos + Unit * 20 + i * Unit * i / 25)
- wait(0.05)
- end
- end
- function Selected(Mouse)
- Backpack = HopperBin.Parent
- Player = Backpack.Parent
- Character = Player.Character
- Humanoid = Character:FindFirstChild("Humanoid")
- Head = Character:FindFirstChild("Head")
- if not Player or not Character or not Humanoid or Humanoid.Health == 0 or not Head then
- return
- end
- Mouse.Button1Down:connect(function()
- Button1Down(Mouse)
- end)
- Mouse.Icon = "rbxasset://textures\\GunCursor.png"
- end
- HopperBin.Selected:connect(Selected)
- end))
- HopperBin36.Name = "SpinFire"
- HopperBin36.Parent = Backpack30
- Sound37.Parent = HopperBin36
- Sound37.SoundId = "rbxasset://sounds/Rocket whoosh 01.wav"
- Sound37.Volume = 0.60000002384186
- LocalScript38.Parent = HopperBin36
- table.insert(cors,sandbox(LocalScript38,function()
- --clockwork
- --Fix implemented by Luckymaxer
- HopperBin = script.Parent
- Sound = HopperBin:WaitForChild("Sound")
- Debris = game:GetService("Debris")
- function TagHumanoid(humanoid, player)
- local Creator_Tag = Instance.new("ObjectValue")
- Creator_Tag.Name = "creator"
- Creator_Tag.Value = player
- Debris:AddItem(Creator_Tag, 2)
- Creator_Tag.Parent = humanoid
- end
- function UntagHumanoid(humanoid)
- for i, v in pairs(humanoid:GetChildren()) do
- if v:IsA("ObjectValue") and v.Name == "creator" then
- v:Destroy()
- end
- end
- end
- function FindCharacterAncestor(Parent)
- if Parent and Parent ~= game:GetService("Workspace") then
- local humanoid = Parent:FindFirstChild("Humanoid")
- if humanoid then
- return Parent, humanoid
- else
- return FindCharacterAncestor(Parent.Parent)
- end
- end
- return nil
- end
- function ExplosionHit(Explosion)
- Explosion.Hit:connect(function(Hit)
- if Hit and Hit.Parent then
- local character, humanoid = FindCharacterAncestor(Hit)
- if character and character ~= Character and humanoid and humanoid.Health > 0 then
- UntagHumanoid(humanoid)
- TagHumanoid(humanoid, Player)
- Hit:BreakJoints()
- end
- end
- end)
- end
- function Explode(Position)
- local Explosion = Instance.new("Explosion")
- Explosion.BlastRadius = 10
- Explosion.BlastPressure = 0
- Explosion.ExplosionType = Enum.ExplosionType.NoCraters
- Explosion.Position = Position
- ExplosionHit(Explosion)
- Explosion.Parent = game:GetService("Workspace")
- end
- function Button1Down(Mouse)
- Sound:Play()
- local Direction = CFrame.new(Head.Position, Mouse.Hit.p)
- for i = 0, 75 do
- x = math.sin(i / 3) * 8 * (75 - i) / 75
- y = math.cos(i / 3) * 8 * (75 - i) / 75
- local Helix = Direction * CFrame.new(x, y, -i)
- Explode(Helix.p)
- x = -math.sin(i / 3) * 8 * (75 - i) / 75
- y = -math.cos(i / 3) * 8 * (75 - i) / 75
- Helix = Direction * CFrame.new(x, y, -i)
- explode(helix.p)
- wait(.02)
- end
- sfx:pause()
- end
- function Selected(Mouse)
- Backpack = HopperBin.Parent
- Player = Backpack.Parent
- Character = Player.Character
- Humanoid = Character:FindFirstChild("Humanoid")
- Head = Character:FindFirstChild("Head")
- if not Player or not Character or not Humanoid or Humanoid.Health == 0 or not Head then
- return
- end
- Mouse.Button1Down:connect(function()
- Button1Down(Mouse)
- end)
- Mouse.Icon = "rbxasset://textures\\GunCursor.png"
- end
- HopperBin.Selected:connect(Selected)
- end))
- ObjectValue39.Name = "ControllingPlayer"
- ObjectValue39.Parent = Part24
- Weld40.Parent = Part24
- Weld40.C0 = CFrame.new(-1.7998085, -20.748745, 27.5207024, -0.916252851, -5.35784027e-22, 0.400600553, -5.74539893e-23, 1, 9.09494702e-13, -0.400600582, 1.17258638e-21, -0.916252851)
- Weld40.C1 = CFrame.new(-11.7386932, -10.7007666, -11.5069704, -0.993298829, 0.0185820181, 0.114070132, 0.114087924, -0.000103826387, 0.99347055, 0.0184725318, 0.999827325, -0.00201685284)
- Weld40.Part0 = Part24
- Weld40.Part1 = Part53
- Weld41.Parent = Part24
- Weld41.C0 = CFrame.new(-1.7998085, -20.748745, 27.5207024, -0.916252851, -5.35784027e-22, 0.400600553, -5.74539893e-23, 1, 9.09494702e-13, -0.400600582, 1.17258638e-21, -0.916252851)
- Weld41.C1 = CFrame.new(29.9999962, -26.3999977, -3.00000024, 0, -9.09494702e-13, -0.999999881, 2.117489e-23, 1, 9.09494702e-13, 0.99999994, 2.117489e-23, 0)
- Weld41.Part0 = Part24
- Weld41.Part1 = Seat23
- Weld42.Parent = Part24
- Weld42.C0 = CFrame.new(-1.7998085, -20.748745, 27.5207024, -0.916252851, -5.35784027e-22, 0.400600553, -5.74539893e-23, 1, 9.09494702e-13, -0.400600582, 1.17258638e-21, -0.916252851)
- Weld42.C1 = CFrame.new(29.9999962, -26.5999985, 0.999999464, 0, -9.09494702e-13, -0.999999881, 2.117489e-23, 1, 9.09494702e-13, 0.99999994, 2.117489e-23, 0)
- Weld42.Part0 = Part24
- Weld42.Part1 = Part21
- Weld43.Parent = Part24
- Weld43.C0 = CFrame.new(-1.7998085, -20.748745, 27.5207024, -0.916252851, -5.35784027e-22, 0.400600553, -5.74539893e-23, 1, 9.09494702e-13, -0.400600582, 1.17258638e-21, -0.916252851)
- Weld43.C1 = CFrame.new(29.9999962, -26.5999985, -1.00000036, 0, -9.09494702e-13, -0.999999881, 2.117489e-23, 1, 9.09494702e-13, 0.99999994, 2.117489e-23, 0)
- Weld43.Part0 = Part24
- Weld43.Part1 = Part15
- Weld44.Parent = Part24
- Weld44.C0 = CFrame.new(-1.7998085, -20.748745, 27.5207024, -0.916252851, -5.35784027e-22, 0.400600553, -5.74539893e-23, 1, 9.09494702e-13, -0.400600582, 1.17258638e-21, -0.916252851)
- Weld44.C1 = CFrame.new(27.9999962, -26.1999989, -0.99999994, 0, -9.09494702e-13, -0.999999881, 2.117489e-23, 1, 9.09494702e-13, 0.99999994, 2.117489e-23, 0)
- Weld44.Part0 = Part24
- Weld44.Part1 = Part19
- Weld45.Parent = Part24
- Weld45.C0 = CFrame.new(-1.7998085, -20.748745, 27.5207024, -0.916252851, -5.35784027e-22, 0.400600553, -5.74539893e-23, 1, 9.09494702e-13, -0.400600582, 1.17258638e-21, -0.916252851)
- Weld45.C1 = CFrame.new(27.9999962, -26.1999989, -4.99999952, 0, -9.09494702e-13, -0.999999881, 2.117489e-23, 1, 9.09494702e-13, 0.99999994, 2.117489e-23, 0)
- Weld45.Part0 = Part24
- Weld45.Part1 = Part11
- Weld46.Parent = Part24
- Weld46.C0 = CFrame.new(-1.7998085, -20.748745, 27.5207024, -0.916252851, -5.35784027e-22, 0.400600553, -5.74539893e-23, 1, 9.09494702e-13, -0.400600582, 1.17258638e-21, -0.916252851)
- Weld46.C1 = CFrame.new(29.9999962, -25.9999981, -2.99999976, 0, -9.09494702e-13, -0.999999881, 2.117489e-23, 1, 9.09494702e-13, 0.99999994, 2.117489e-23, 0)
- Weld46.Part0 = Part24
- Weld46.Part1 = Part9
- Weld47.Parent = Part24
- Weld47.C0 = CFrame.new(-1.7998085, -20.748745, 27.5207024, -0.916252851, -5.35784027e-22, 0.400600553, -5.74539893e-23, 1, 9.09494702e-13, -0.400600582, 1.17258638e-21, -0.916252851)
- Weld47.C1 = CFrame.new(29.9999962, -26.1999969, -4.99999952, 0, -9.09494702e-13, -0.999999881, 2.117489e-23, 1, 9.09494702e-13, 0.99999994, 2.117489e-23, 0)
- Weld47.Part0 = Part24
- Weld47.Part1 = Part7
- Weld48.Parent = Part24
- Weld48.C0 = CFrame.new(-1.7998085, -20.748745, 27.5207024, -0.916252851, -5.35784027e-22, 0.400600553, -5.74539893e-23, 1, 9.09494702e-13, -0.400600582, 1.17258638e-21, -0.916252851)
- Weld48.C1 = CFrame.new(31.9999962, -26.1999989, -2.99999976, 0, -9.09494702e-13, -0.999999881, 2.117489e-23, 1, 9.09494702e-13, 0.99999994, 2.117489e-23, 0)
- Weld48.Part0 = Part24
- Weld48.Part1 = Part5
- Weld49.Parent = Part24
- Weld49.C0 = CFrame.new(-1.7998085, -20.748745, 27.5207024, -0.916252851, -5.35784027e-22, 0.400600553, -5.74539893e-23, 1, 9.09494702e-13, -0.400600582, 1.17258638e-21, -0.916252851)
- Weld49.C1 = CFrame.new(31.9999962, -26.1999989, -4.99999952, 0, -9.09494702e-13, -0.999999881, 2.117489e-23, 1, 9.09494702e-13, 0.99999994, 2.117489e-23, 0)
- Weld49.Part0 = Part24
- Weld49.Part1 = Part3
- Weld50.Parent = Part24
- Weld50.C0 = CFrame.new(-1.7998085, -20.748745, 27.5207024, -0.916252851, -5.35784027e-22, 0.400600553, -5.74539893e-23, 1, 9.09494702e-13, -0.400600582, 1.17258638e-21, -0.916252851)
- Weld50.C1 = CFrame.new(31.9999962, -26.1999969, -1.00000036, 0, -9.09494702e-13, -0.999999881, 2.117489e-23, 1, 9.09494702e-13, 0.99999994, 2.117489e-23, 0)
- Weld50.Part0 = Part24
- Weld50.Part1 = Part17
- Weld51.Parent = Part24
- Weld51.C0 = CFrame.new(-1.7998085, -20.748745, 27.5207024, -0.916252851, -5.35784027e-22, 0.400600553, -5.74539893e-23, 1, 9.09494702e-13, -0.400600582, 1.17258638e-21, -0.916252851)
- Weld51.C1 = CFrame.new(27.9999981, -26.1999989, -2.99999976, 0, -9.09494702e-13, -0.999999881, 2.117489e-23, 1, 9.09494702e-13, 0.99999994, 2.117489e-23, 0)
- Weld51.Part0 = Part24
- Weld51.Part1 = Part13
- Tool52.Name = "GravityHammer"
- Tool52.Parent = Hat1
- Tool52.TextureId = "http://www.roblox.com/asset/?id=1256305"
- Tool52.GripForward = Vector3.new(-1, -0, -0)
- Tool52.GripPos = Vector3.new(0, 0, -3.25)
- Tool52.GripRight = Vector3.new(0, 1, 0)
- Tool52.GripUp = Vector3.new(0, 0, 1)
- Part53.Name = "Handle"
- Part53.Parent = Tool52
- Part53.BrickColor = BrickColor.new("Dark stone grey")
- Part53.Reflectance = 0.40000000596046
- Part53.Rotation = Vector3.new(-90.1199951, 1.05999994, -173.449997)
- Part53.RotVelocity = Vector3.new(8.4264061e-25, 3.72885967e-22, 5.50971025e-25)
- Part53.Velocity = Vector3.new(3.13014643e-20, 0.00671230676, 4.37683396e-20)
- Part53.Anchored = true
- Part53.FormFactor = Enum.FormFactor.Plate
- Part53.Size = Vector3.new(1, 0.800000012, 10)
- Part53.CFrame = CFrame.new(-73.226593, -45.4915504, 20.4468555, -0.993294716, 0.114087462, 0.0184724592, 0.0185820181, -0.0001038255, 0.999827325, 0.114069134, 0.993462503, -0.00201683445)
- Part53.BottomSurface = Enum.SurfaceType.Smooth
- Part53.TopSurface = Enum.SurfaceType.Smooth
- Part53.Color = Color3.new(0.388235, 0.372549, 0.384314)
- Part53.Position = Vector3.new(-73.226593, -45.4915504, 20.4468555)
- Part53.Orientation = Vector3.new(-88.9399948, 96.2299957, 90.3199997)
- Part53.Color = Color3.new(0.388235, 0.372549, 0.384314)
- SpecialMesh54.Parent = Part53
- SpecialMesh54.MeshId = "http://www.roblox.com/asset/?id=1256290"
- SpecialMesh54.Scale = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
- SpecialMesh54.TextureId = "http://www.roblox.com/asset/?id=1256283"
- SpecialMesh54.MeshType = Enum.MeshType.FileMesh
- SpecialMesh54.Scale = Vector3.new(0.0500000007, 0.0500000007, 0.0500000007)
- Sound55.Parent = Part53
- Sound55.SoundId = "http://www.roblox.com/asset/?id=1255794"
- Sound55.Volume = 1
- ManualWeld56.Name = "Handle Terrain Joint"
- ManualWeld56.Parent = Part53
- ManualWeld56.C1 = CFrame.new(-113.076073, -78.574501, -6.91665745, -0.993294835, 0.0185820181, 0.114069194, 0.114087462, -0.000103826329, 0.993462563, 0.0184724592, 0.999827325, -0.00201683631)
- ManualWeld56.Part1 = Part53
- LocalScript57.Name = "MouseIcon"
- LocalScript57.Parent = Tool52
- table.insert(cors,sandbox(LocalScript57,function()
- --Made by Luckymaxer
- Mouse_Icon = "rbxasset://textures/GunCursor.png"
- Reloading_Icon = "rbxasset://textures/GunWaitCursor.png"
- Tool = script.Parent
- Mouse = nil
- function UpdateIcon()
- if Mouse then
- Mouse.Icon = Tool.Enabled and Mouse_Icon or Reloading_Icon
- end
- end
- function OnEquipped(ToolMouse)
- Mouse = ToolMouse
- UpdateIcon()
- end
- function OnChanged(Property)
- if Property == "Enabled" then
- UpdateIcon()
- end
- end
- Tool.Equipped:connect(OnEquipped)
- Tool.Changed:connect(OnChanged)
- end))
- Script58.Name = "SwordScript"
- Script58.Parent = Tool52
- table.insert(cors,sandbox(Script58,function()
- --Made by Luckymaxer
- Tool = script.Parent
- Handle = Tool:WaitForChild("Handle")
- Sound = Handle:WaitForChild("Sound")
- Players = game:GetService("Players")
- Debris = game:GetService("Debris")
- Debounce = false
- Tool.Enabled = true
- function TagHumanoid(humanoid, player)
- local Creator_Tag = Instance.new("ObjectValue")
- Creator_Tag.Name = "creator"
- Creator_Tag.Value = player
- Debris:AddItem(Creator_Tag, 2)
- Creator_Tag.Parent = humanoid
- end
- function UntagHumanoid(humanoid)
- for i, v in pairs(humanoid:GetChildren()) do
- if v:IsA("ObjectValue") and v.Name == "creator" then
- v:Destroy()
- end
- end
- end
- function FindCharacterAncestor(Parent)
- if Parent and Parent ~= game:GetService("Workspace") then
- local humanoid = Parent:FindFirstChild("Humanoid")
- if humanoid then
- return Parent, humanoid
- else
- return FindCharacterAncestor(Parent.Parent)
- end
- end
- return nil
- end
- function Blow(Hit)
- RightGrip = RightGrip:Clone()
- if Hit and Hit.Parent then
- local humanoid = Hit.Parent:FindFirstChild("Humanoid")
- if humanoid == Humanoid then
- return
- end
- if humanoid then
- Propel(Hit)
- UntagHumanoid(humanoid)
- TagHumanoid(humanoid, Player)
- humanoid.Health = humanoid.Health - 49
- else
- Explode(Hit)
- end
- end
- end
- function Propel(Part)
- if not Part or not Part.Parent or Part.Anchored then
- return
- end
- local character, humanoid = FindCharacterAncestor(Part)
- if character == Character then
- return
- end
- local Direction = (Part.Position - Torso.Position).unit
- Direction = Direction + Vector3.new(0, 1, 0)
- Direction = Direction * 200
- Part.Velocity = Part.Velocity + Direction
- end
- function Explode(Part)
- if not Part or not Part.Parent or Debounce then
- return
- end
- Debounce = true
- local Direction = (Part.Position - Torso.Position).unit
- local Position = Direction * 12 + Torso.Position
- local Explosion = Instance.new("Explosion")
- Explosion.ExplosionType = Enum.ExplosionType.NoCraters
- Explosion.BlastRadius = 4
- Explosion.BlastPressure = 1
- Explosion.Position = Position
- Explosion.Hit:connect(function(Part, Distance)
- Propel(Part)
- end)
- Explosion.Parent = game:GetService("Workspace")
- wait(0.1)
- local GripClone = RightGrip:Clone()
- GripClone.Parent = RightArm
- Debounce = false
- end
- function Attack()
- Sound:play()
- local Anim = Instance.new("StringValue")
- Anim.Name = "toolanim"
- Anim.Value = "Slash"
- Debris:AddItem(Anim, 2)
- Anim.Parent = Tool
- end
- function Lunge()
- Attack()
- local Force = Instance.new("BodyPosition")
- Force.maxForce = Vector3.new(1e+005, 1e+004, 1e+005)
- local Direction = Humanoid.targetPoint
- if ((Direction - Handle.Position).magnitude > 15) then
- return
- end
- Force.position = Direction
- Debris:AddItem(Force, 0.25)
- Force.Parent = Handle
- end
- function Activated()
- if not Tool.Enabled or not Humanoid.Parent or Humanoid.Health == 0 or not Torso.Parent or not RightArm.Parent or not RightGrip then
- return
- end
- Tool.Enabled = false
- connection = Handle.Touched:connect(Blow)
- Lunge()
- wait(0.4)
- connection:disconnect()
- Tool.Enabled = true
- end
- function Equipped()
- Character = Tool.Parent
- Player = Players:GetPlayerFromCharacter(Character)
- Humanoid = Character:FindFirstChild("Humanoid")
- Torso = Character:FindFirstChild("Torso")
- RightArm = Character:FindFirstChild("Right Arm")
- if RightArm then
- RightGrip = RightArm:FindFirstChild("RightGrip")
- end
- if not Player or not Humanoid or Humanoid.Health == 0 or not Torso or not RightArm or not RightGrip then
- return
- end
- end
- Tool.Activated:connect(Activated)
- Tool.Equipped:connect(Equipped)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = workspace
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement