Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Customize the Ban Hammer model ID, texture ID, and click options
- local banHammerModelId = "rbxassetid://10604848"
- local banHammerTextureId = "rbxassetid://10605252"
- local clickToVanish = true -- Set to false if you want to use a different method to trigger the vanish
- -- Customize the idle animation ID
- local idleAnimationId = "rbxassetid://15566392299"
- -- Load Ban Hammer model
- local banHammerModel = Instance.new("Model")
- banHammerModel.Name = "BanHammerModel"
- local handle = Instance.new("Part")
- handle.Name = "Handle"
- handle.Size = Vector3.new(1, 5, 1)
- handle.Anchored = false
- handle.Parent = banHammerModel
- local mesh = Instance.new("SpecialMesh")
- mesh.MeshType = Enum.MeshType.FileMesh
- mesh.MeshId = banHammerModelId
- mesh.Parent = handle
- -- Load the Ban Hammer texture
- local handleTexture = Instance.new("Texture")
- handleTexture.Texture = banHammerTextureId
- handleTexture.Parent = handle
- local clickDetector = Instance.new("ClickDetector")
- clickDetector.Parent = handle
- -- Set primary part for Ban Hammer model
- banHammerModel:SetPrimaryPartCFrame(handle.CFrame)
- -- Load idle animation
- local player = game.Players.LocalPlayer
- local humanoid = player.Character and player.Character:FindFirstChildOfClass("Humanoid")
- if humanoid then
- local animation = Instance.new("Animation")
- animation.AnimationId = idleAnimationId
- local animationTrack = humanoid:LoadAnimation(animation)
- animationTrack:Play()
- end
- -- Define vanish function
- local function vanishPlayer(target)
- -- Perform actions to 'vanish' the player (you can customize this)
- print("Player vanished:", target.Name)
- target:Remove()
- end
- -- Handle click events
- clickDetector.MouseClick:Connect(function()
- if not clickToVanish then
- local target = clickDetector.Parent
- if target:IsA("Model") and target:FindFirstChild("Handle") then
- vanishPlayer(player)
- end
- end
- end)
- -- Optionally, you can parent the Ban Hammer model to the player's character for visibility.
- banHammerModel.Parent = player.Character
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement