Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- HAT NEEDED:
- -- https://web.roblox.com/catalog/4315489767/Demonic-Greatsword\
- -- PRESS E TO ATTACK
- -- Flinging Tool
- -- Checking Sequence
- local value = Instance.new("NumberValue")
- for _,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
- if (v:IsA("Accessory")) then
- value.Value = value.Value +1
- end
- end
- wait()
- print(value.Value)
- wait()
- if value.Value == 2 then
- game.Players.LocalPlayer.Character.Head:Destroy()
- spawn(function()
- local message = Instance.new("Message",workspace)
- message.Text = "ERROR"
- wait(1)
- message:Destroy()
- end)
- wait(1)
- spawn(function()
- local message = Instance.new("Message",workspace)
- message.Text = "PLEASE USE ONE HAT. (value.Value surpassed 1) .. HAT AMMOUNT: " .. value.Value
- wait(4)
- message:Destroy()
- end)
- end
- if value.Value == 3 then
- game.Players.LocalPlayer.Character.Head:Destroy()
- spawn(function()
- local message = Instance.new("Message",workspace)
- message.Text = "ERROR"
- wait(1)
- message:Destroy()
- end)
- wait(1)
- spawn(function()
- local message = Instance.new("Message",workspace)
- message.Text = "PLEASE USE ONE HAT. (value.Value surpassed 1) .. HAT AMMOUNT: " .. value.Value
- wait(4)
- message:Destroy()
- end)
- end
- if value.Value == 4 then
- game.Players.LocalPlayer.Character.Head:Destroy()
- spawn(function()
- local message = Instance.new("Message",workspace)
- message.Text = "ERROR"
- wait(1)
- message:Destroy()
- end)
- wait(1)
- spawn(function()
- local message = Instance.new("Message",workspace)
- message.Text = "PLEASE USE ONE HAT. (value.Value surpassed 1) .. HAT AMMOUNT: " .. value.Value
- wait(4)
- message:Destroy()
- end)
- end
- if value.Value == 5 then
- game.Players.LocalPlayer.Character.Head:Destroy()
- spawn(function()
- local message = Instance.new("Message",workspace)
- message.Text = "ERROR"
- wait(1)
- message:Destroy()
- end)
- wait(1)
- spawn(function()
- local message = Instance.new("Message",workspace)
- message.Text = "PLEASE USE ONE HAT. (value.Value surpassed 1) .. HAT AMMOUNT: " .. value.Value
- wait(4)
- message:Destroy()
- end)
- end
- if value.Value == 6 then
- game.Players.LocalPlayer.Character.Head:Destroy()
- spawn(function()
- local message = Instance.new("Message",workspace)
- message.Text = "ERROR"
- wait(1)
- message:Destroy()
- end)
- wait(1)
- spawn(function()
- local message = Instance.new("Message",workspace)
- message.Text = "PLEASE USE ONE HAT. (value.Value surpassed 1) .. HAT AMMOUNT: " .. value.Value
- wait(4)
- message:Destroy()
- end)
- end
- if value.Value == 7 then
- game.Players.LocalPlayer.Character.Head:Destroy()
- spawn(function()
- local message = Instance.new("Message",workspace)
- message.Text = "ERROR"
- wait(1)
- message:Destroy()
- end)
- wait(1)
- spawn(function()
- local message = Instance.new("Message",workspace)
- message.Text = "PLEASE USE ONE HAT. (value.Value surpassed 1) .. HAT AMMOUNT: " .. value.Value
- wait(4)
- message:Destroy()
- end)
- end
- if value.Value == 8 then
- game.Players.LocalPlayer.Character.Head:Destroy()
- spawn(function()
- local message = Instance.new("Message",workspace)
- message.Text = "ERROR"
- wait(1)
- message:Destroy()
- end)
- wait(1)
- spawn(function()
- local message = Instance.new("Message",workspace)
- message.Text = "PLEASE USE ONE HAT. (value.Value surpassed 1) .. HAT AMMOUNT: " .. value.Value
- wait(4)
- message:Destroy()
- end)
- end
- if value.Value == 9 then
- game.Players.LocalPlayer.Character.Head:Destroy()
- spawn(function()
- local message = Instance.new("Message",workspace)
- message.Text = "ERROR"
- wait(1)
- message:Destroy()
- end)
- wait(1)
- spawn(function()
- local message = Instance.new("Message",workspace)
- message.Text = "PLEASE USE ONE HAT. (value.Value surpassed 1) .. HAT AMMOUNT: " .. value.Value
- wait(4)
- message:Destroy()
- end)
- end
- if value.Value == 10 then
- game.Players.LocalPlayer.Character.Head:Destroy()
- spawn(function()
- local message = Instance.new("Message",workspace)
- message.Text = "ERROR"
- wait(1)
- message:Destroy()
- end)
- wait(1)
- spawn(function()
- local message = Instance.new("Message",workspace)
- message.Text = "PLEASE USE ONE HAT. (value.Value surpassed 1) .. HAT AMMOUNT: " .. value.Value
- wait(4)
- message:Destroy()
- end)
- end
- -- Main Animation
- --[[
- local Anim = Instance.new("Animation")
- Anim.AnimationId = "rbxassetid://182393478"
- local track = game.Players.LocalPlayer.Character.Humanoid:LoadAnimation(Anim)
- track:Play(.1, 1, 1)
- ]]
- -- Hat Position
- local Xval = Instance.new("NumberValue")
- local Yval = Instance.new("NumberValue")
- local Zval = Instance.new("NumberValue")
- local XvalO = Instance.new("NumberValue")
- local YvalO = Instance.new("NumberValue")
- local ZvalO = Instance.new("NumberValue")
- local num3 = Instance.new("NumberValue")
- local ori = Instance.new("NumberValue")
- local an = Instance.new("NumberValue")
- local toggle = true
- local angular = Vector3.new(0,0,0)
- ori.Value = 100
- num3.Value = 0
- Xval.Value = 0
- Yval.Value = -1
- Zval.Value = 2
- XvalO.Value = 0
- YvalO.Value = 0
- ZvalO.Value = 0
- local plr = game.Players.LocalPlayer;
- local chr = plr.Character;
- local hum = chr.Humanoid;
- local mov = {};
- local mov2 = {};
- coroutine.resume(coroutine.create(function()
- settings().Physics.AllowSleep = false;
- game.RunService.RenderStepped:Connect(function()
- for i, v in pairs(game.Players:GetPlayers()) do
- if v ~= plr then
- v.MaximumSimulationRadius = 0.1;
- v.SimulationRadius = 0;
- else
- v.MaximumSimulationRadius = math.pow(math.huge, math.huge);
- v.SimulationRadius = math.pow(math.huge, 2);
- end
- end
- end)
- end))
- for _, v in pairs(hum:GetAccessories()) do
- local b = v.Handle;
- b.CanCollide = false;
- b:BreakJoints();
- for _, k in pairs(v:GetChildren()) do
- if not k:IsA'SpecialMesh' and not k:IsA'Part' then
- k:Destroy();
- end
- end
- local still = Instance.new('BodyAngularVelocity', b);
- local align = Instance.new('AlignPosition', b);
- align.RigidityEnabled = true;
- local a0 = Instance.new('Attachment', b);
- local a1 = Instance.new('Attachment', chr.Head);
- align.Attachment0 = a0;
- align.Attachment1 = a1;
- table.insert(mov, a1);
- table.insert(mov2, still);
- end
- local mode = 1;
- local l = 1;
- game['Run Service'].RenderStepped:Connect(function()
- if mode == 1 then
- for _, v in pairs(mov) do
- v.Position = Vector3.new(Xval.Value, Yval.Value, Zval.Value);
- end
- end
- end)
- local tool = plr.Backpack:findFirstChildOfClass("Tool")
- local ScreenGui = Instance.new("ScreenGui")
- local Dragging = Instance.new("Frame")
- local Exit = Instance.new("TextButton")
- local BG = Instance.new("Frame")
- local Set = Instance.new("TextButton")
- local XPos = Instance.new("TextBox")
- local XOri = Instance.new("TextBox")
- local YOri = Instance.new("TextBox")
- local YPos = Instance.new("TextBox")
- local ZPos = Instance.new("TextBox")
- local ZOri = Instance.new("TextBox")
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- ScreenGui.ResetOnSpawn = false
- Dragging.Name = "Dragging"
- Dragging.Parent = ScreenGui
- Dragging.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Dragging.BackgroundTransparency = 0.800
- Dragging.BorderSizePixel = 0
- Dragging.Position = UDim2.new(0, 0, 0.400491387, 0)
- Dragging.Size = UDim2.new(0, 181, 0, 24)
- Dragging.Active = true
- Dragging.Draggable = true
- Dragging.Selectable = true
- Exit.Name = "Exit"
- Exit.Parent = Dragging
- Exit.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Exit.BackgroundTransparency = 1.000
- Exit.Position = UDim2.new(0.802137554, 0, 0, 0)
- Exit.Size = UDim2.new(0, 35, 0, 24)
- Exit.Font = Enum.Font.SourceSans
- Exit.Text = "X"
- Exit.TextColor3 = Color3.fromRGB(0, 0, 0)
- Exit.TextScaled = true
- Exit.TextSize = 14.000
- Exit.TextWrapped = true
- Exit.MouseButton1Click:Connect(function()
- ScreenGui:Destroy()
- end)
- BG.Name = "BG"
- BG.Parent = Dragging
- BG.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- BG.BackgroundTransparency = 0.800
- BG.BorderSizePixel = 0
- BG.Position = UDim2.new(0, 0, 1, 0)
- BG.Size = UDim2.new(0, 181, 0, 328)
- Set.Name = "Set"
- Set.Parent = BG
- Set.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- Set.BackgroundTransparency = 0.800
- Set.Position = UDim2.new(0, 0, 0.945121944, 0)
- Set.Size = UDim2.new(0, 181, 0, 18)
- Set.Font = Enum.Font.Arial
- Set.Text = "Set Position"
- Set.TextColor3 = Color3.fromRGB(0, 0, 0)
- Set.TextScaled = true
- Set.TextSize = 14.000
- Set.TextWrapped = true
- Set.MouseButton1Click:connect(function()
- Xval.Value = XPos.Text
- Yval.Value = YPos.Text
- Zval.Value = ZPos.Text
- XvalO.Value = XOri.Text
- YvalO.Value = YOri.Text
- ZvalO.Value = ZOri.Text
- end)
- XPos.Name = "XPos"
- XPos.Parent = BG
- XPos.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- XPos.BackgroundTransparency = 0.800
- XPos.Size = UDim2.new(0, 79, 0, 50)
- XPos.Font = Enum.Font.SourceSans
- XPos.PlaceholderColor3 = Color3.fromRGB(255, 255, 255)
- XPos.PlaceholderText = "X Position"
- XPos.Text = ""
- XPos.TextColor3 = Color3.fromRGB(255, 255, 255)
- XPos.TextSize = 14.000
- XOri.Name = "XOri"
- XOri.Parent = BG
- XOri.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- XOri.BackgroundTransparency = 0.800
- XOri.Position = UDim2.new(0.558011055, 0, 0, 0)
- XOri.Size = UDim2.new(0, 79, 0, 50)
- XOri.Font = Enum.Font.SourceSans
- XOri.PlaceholderColor3 = Color3.fromRGB(255, 255, 255)
- XOri.PlaceholderText = "X Orientation"
- XOri.Text = ""
- XOri.TextColor3 = Color3.fromRGB(255, 255, 255)
- XOri.TextSize = 14.000
- YOri.Name = "YOri"
- YOri.Parent = BG
- YOri.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- YOri.BackgroundTransparency = 0.800
- YOri.Position = UDim2.new(0.558011055, 0, 0.38719514, 0)
- YOri.Size = UDim2.new(0, 79, 0, 50)
- YOri.Font = Enum.Font.SourceSans
- YOri.PlaceholderColor3 = Color3.fromRGB(255, 255, 255)
- YOri.PlaceholderText = "Y Orientation"
- YOri.Text = ""
- YOri.TextColor3 = Color3.fromRGB(255, 255, 255)
- YOri.TextSize = 14.000
- YPos.Name = "YPos"
- YPos.Parent = BG
- YPos.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- YPos.BackgroundTransparency = 0.800
- YPos.Position = UDim2.new(0, 0, 0.38719514, 0)
- YPos.Size = UDim2.new(0, 79, 0, 50)
- YPos.Font = Enum.Font.SourceSans
- YPos.PlaceholderColor3 = Color3.fromRGB(255, 255, 255)
- YPos.PlaceholderText = "Y Position"
- YPos.Text = ""
- YPos.TextColor3 = Color3.fromRGB(255, 255, 255)
- YPos.TextSize = 14.000
- ZPos.Name = "ZPos"
- ZPos.Parent = BG
- ZPos.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ZPos.BackgroundTransparency = 0.800
- ZPos.Position = UDim2.new(0, 0, 0.792682946, 0)
- ZPos.Size = UDim2.new(0, 79, 0, 50)
- ZPos.Font = Enum.Font.SourceSans
- ZPos.PlaceholderColor3 = Color3.fromRGB(255, 255, 255)
- ZPos.PlaceholderText = "Z Position"
- ZPos.Text = ""
- ZPos.TextColor3 = Color3.fromRGB(255, 255, 255)
- ZPos.TextSize = 14.000
- ZOri.Name = "ZOri"
- ZOri.Parent = BG
- ZOri.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- ZOri.BackgroundTransparency = 0.800
- ZOri.Position = UDim2.new(0.558011055, 0, 0.792682946, 0)
- ZOri.Size = UDim2.new(0, 79, 0, 50)
- ZOri.Font = Enum.Font.SourceSans
- ZOri.PlaceholderColor3 = Color3.fromRGB(255, 255, 255)
- ZOri.PlaceholderText = "Z Orientation"
- ZOri.Text = ""
- ZOri.TextColor3 = Color3.fromRGB(255, 255, 255)
- ZOri.TextSize = 14.000
- local function orie()
- while wait() do
- if chr.Humanoid.Health == 0 then
- toggle = false
- end
- for _, v in pairs(hum:GetAccessories()) do
- local b = v.Handle;
- b.Orientation = Vector3.new(plr.Character.Head.Orientation.X + XvalO.Value, plr.Character.Head.Orientation.Y + YvalO.Value, plr.Character.Head.Orientation.Z + ZvalO.Value)
- end
- end
- end
- for _, v in pairs(mov2) do
- v.AngularVelocity = angular;
- end
- orie()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement