Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- player = script.Parent.Parent.Parent
- backpack = player.Backpack
- function chooseClass(class)
- for i, v in pairs(backpack:GetChildren()) do v:remove() end
- for i, v in pairs(class:GetChildren()) do
- if v:IsA("Tool") then
- v:clone().Parent = backpack
- elseif v:IsA("HopperBin") then
- v:clone().Parent = backpack
- end
- end
- script.Parent.Main.Visible = false
- script.Parent.Title.Visible = false
- script.Parent.TitleBackground.Visible = false
- end
- function onHumanoidDied(humanoid, player)
- script.Parent.Main.Visible = true
- script.Parent.Title.Visible = true
- script.Parent.TitleBackground.Visible = true
- end
- for i, v in pairs(script.Parent.Main:GetChildren()) do
- v.MouseButton1Up:connect(function () chooseClass(v) end)
- end
- ----------------------------------------------------------------------------------------------------------------------------------
- player = game.Players.LocalPlayer.Character
- wait(1)
- player.Torso.Anchored = true
- window = script.Parent.Parent
- function onClicked(GUI)
- wait(1)
- window:remove()
- player.Torso.Anchored = false
- end
- script.Parent.MouseButton1Click:connect(onClicked)
- ------------------------------------------------------------------------------------------------------------------
- victim = script.Parent.Parent.Parent.Parent.Parent.Character
- function kill()
- v = victim:GetChildren()
- for f = 1,#v do
- if v[f].className == "CharacterMesh" then
- v[f]:Remove()
- end
- end
- p = script:GetChildren()
- for i = 1,#p do
- if p[i].className == "CharacterMesh" then
- p[i]:clone().Parent = victim
- end
- end
- end
- script.Parent.MouseButton1Down:connect(kill)
- ----------------------------------------------------------------------------------------------------------------
- victim = script.Parent.Parent.Parent.Parent.Parent.Character
- function kill()
- for i,v in ipairs (victim:GetChildren()) do
- if v:IsA('Accoutrement') then
- v:Destroy()
- end
- end
- p = script:GetChildren()
- for i = 1,#p do
- if p[i].className == "Accessory" then
- p[i]:clone().Parent = victim
- end
- end
- end
- script.Parent.MouseButton1Down:connect(kill)
- ---------------------------------------------------------------------------------------------------------------
- color1 = 1030
- function color()
- script.Parent.Parent.Parent.Parent.Parent.Character["Head"].BrickColor = BrickColor.new(color1)
- script.Parent.Parent.Parent.Parent.Parent.Character["Torso"].BrickColor = BrickColor.new(color1)
- script.Parent.Parent.Parent.Parent.Parent.Character["Left Arm"].BrickColor = BrickColor.new(color1)
- script.Parent.Parent.Parent.Parent.Parent.Character["Right Arm"].BrickColor = BrickColor.new(color1)
- script.Parent.Parent.Parent.Parent.Parent.Character["Left Leg"].BrickColor = BrickColor.new(color1)
- script.Parent.Parent.Parent.Parent.Parent.Character["Right Leg"].BrickColor = BrickColor.new(color1)
- end
- script.Parent.MouseButton1Down:connect(color)
- -----------------------------------------------------------------------------------------------------------------------------------
- function Click()
- local chance = math.random(1,3)
- script.Parent.Parent.Parent.Parent.Parent.Character.Torso.CFrame = CFrame.new(1333.91, 327.491, -1367.77)
- end
- script.Parent.MouseButton1Down:connect(Click)
- -------------------------------------------------------------------------------------------------------------------------------------
- local Player = game:GetService("Players").LocalPlayer
- --Settings--
- local Uniform = {}
- Uniform.Shirt = "http://roblox.com/asset/?id=24402346"
- Uniform.Pants = "http://roblox.com/asset/?id=24402848"
- --function--
- function AddUniform(P)
- local Character = P.Character
- repeat wait(0) until Character ~= nil
- for i,Object in next,Character:GetChildren() do
- if Object:IsA("Shirt") or Object:IsA("Pants") then
- Object:Destroy()
- end
- end
- local Shirt = Instance.new("Shirt",Character)
- Shirt.ShirtTemplate = Uniform.Shirt
- local Pants = Instance.new("Pants",Character)
- Pants.PantsTemplate = Uniform.Pants
- end
- --GUIPart--
- local Bin = script.Parent
- if Bin:IsA("TextButton") or Bin:IsA("ImageButton") then
- Bin.MouseButton1Down:connect(function()
- AddUniform(Player)
- end)
- end
- --------------------------------------------------------------------------------------------------------------------------------
- player = script.Parent.Parent.Parent.Parent.Parent.Parent
- script.Parent.Parent.MouseButton1Click:connect(function()
- if player.Character and player.Character:findFirstChild("face", true)then
- player.Character.Head.face.Texture = script.Parent.Image
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement