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"))
- Tool0 = Instance.new("Tool")
- Part1 = Instance.new("Part")
- SpecialMesh2 = Instance.new("SpecialMesh")
- Sound3 = Instance.new("Sound")
- Sound4 = Instance.new("Sound")
- Script5 = Instance.new("Script")
- Tool0.Name = "ODer Cola"
- Tool0.Parent = mas
- Tool0.TextureId = "rbxassetid://345641062"
- Tool0.GripForward = Vector3.new(-0.976163507, 0, -0.217036352)
- Tool0.GripPos = Vector3.new(-0.150000006, 0, -0.300000012)
- Tool0.GripRight = Vector3.new(0.217036352, 0, -0.976163507)
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.BrickColor = BrickColor.new("Mid gray")
- Part1.Rotation = Vector3.new(-90, -89.9799957, -89.9599991)
- Part1.Locked = true
- Part1.FormFactor = Enum.FormFactor.Plate
- Part1.Size = Vector3.new(1, 1.20000005, 1)
- Part1.CFrame = CFrame.new(0.500116289, 0.599470139, 16.4994812, 1.49011612e-07, 0.000193958229, -0.99999994, 0.000865344482, 0.999999583, 0.000193958331, 0.999999583, -0.000865344482, 0)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Color = Color3.new(0.803922, 0.803922, 0.803922)
- Part1.Position = Vector3.new(0.500116289, 0.599470139, 16.4994812)
- Part1.Orientation = Vector3.new(-0.00999999978, -90, 0.049999997)
- Part1.Color = Color3.new(0.803922, 0.803922, 0.803922)
- SpecialMesh2.Parent = Part1
- SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=10470609"
- SpecialMesh2.Scale = Vector3.new(1.20000005, 1.20000005, 1.20000005)
- SpecialMesh2.TextureId = "rbxassetid://1145273756"
- SpecialMesh2.MeshType = Enum.MeshType.FileMesh
- SpecialMesh2.Scale = Vector3.new(1.20000005, 1.20000005, 1.20000005)
- Sound3.Name = "DrinkSound"
- Sound3.Parent = Part1
- Sound3.SoundId = "http://www.roblox.com/asset/?id=10722059"
- Sound4.Name = "OpenSound"
- Sound4.Parent = Part1
- Sound4.SoundId = "http://www.roblox.com/asset/?id=10721950"
- Script5.Name = "BloxyColaScript"
- Script5.Parent = Tool0
- table.insert(cors,sandbox(Script5,function()
- local Tool = script.Parent;
- enabled = true
- alreadyoder = false
- function onActivated()
- if alreadyoder == false then
- if not enabled then
- return
- end
- alreadyoder = true
- enabled = false
- Player.Torso["Right Shoulder"].C0 = CFrame.new(0.9,0.5,-0.05) * CFrame.Angles(0.2,2,0)
- wait(0.05)
- Player.Torso["Right Shoulder"].C0 = CFrame.new(0.8,0.5,-0.1) * CFrame.Angles(0.4,2.4,0)
- Tool.Handle.DrinkSound:Play()
- for i = 1,30 do
- wait(0.1)
- Player.Humanoid.Health = Player.Humanoid.Health + 1
- end
- Player.Torso["Right Shoulder"].C0 = CFrame.new(0.9,0.5,-0.05) * CFrame.Angles(0.2,2,0)
- wait(0.05)
- Player.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,-0) * CFrame.Angles(0,1.57,0)
- wait(0.5)
- enabled = true
- --Morph
- for _,n in pairs(plr.Character:GetChildren()) do
- if n:IsA("Accoutrement") or n:IsA("CharacterAppearance") then
- n:remove()
- end
- end
- plr.Character.Head.Mesh:remove()
- m = Instance.new("SpecialMesh")
- m.MeshType = Enum.MeshType.Head
- m.Parent = plr.Character.Head
- m.Scale = Vector3.new(1.25,1.25,1.25)
- plr.Character.Head.face.Texture = "rbxassetid://166211499"-----change the code the id "9133624" to the face u want
- local bodycolors = Instance.new("BodyColors", plr.Character)
- bodycolors.RightArmColor = BrickColor.new(125)--- change "Mid gray" to the color u want
- bodycolors.LeftArmColor = BrickColor.new(125)--- change "Mid gray" to the color u want
- bodycolors.LeftLegColor = BrickColor.new(135)--- change "Mid gray" to the color u want
- bodycolors.RightLegColor = BrickColor.new(135)--- change "Mid gray" to the color u want
- bodycolors.HeadColor = BrickColor.new(125)--- change "Mid gray" to the color u want
- bodycolors.TorsoColor = BrickColor.new(1)--- change "Mid gray" to the color u want
- hair = Instance.new("Accessory")
- hair.Name = "ODer Hair"
- hair.AttachmentForward = Vector3.new(0,0,-1)
- hair.AttachmentPos = Vector3.new(0,0,0)
- hair.AttachmentRight = Vector3.new(1,0,0)
- hair.AttachmentUp = Vector3.new(0,1,0)
- handle = Instance.new("Part")
- handle.Name = "Handle"
- handle.Size = Vector3.new(2,2,2)
- attachment = Instance.new("Attachment")
- attachment.Orientation = Vector3.new(0,0,0)
- attachment.Position = Vector3.new(0,0.1,0)
- attachment.Name = "HairAttachment"
- weld = Instance.new("Weld")
- weld.Part0 = handle
- mesh = Instance.new("SpecialMesh")
- mesh.Scale = Vector3.new(1.05,1.05,1.05)
- mesh.MeshType = Enum.MeshType.FileMesh
- mesh.MeshId = "rbxassetid://16627529"
- mesh.TextureId = "rbxassetid://16627494"
- mesh.Parent = handle
- hair.Parent = workspace
- handle.Parent = hair
- attachment.Parent = handle
- weld.Parent = handle
- handle.Position = plr.Character.Head.Position
- -- Now for the 2.0 body... this will be long
- basemesh = Instance.new("CharacterMesh")
- basemesh.BaseTextureId = 0
- basemesh.OverlayTextureId = 0
- torso = basemesh:Clone()
- torso.MeshId = 27111894
- torso.BodyPart = 1
- leftarm = basemesh:Clone()
- leftarm.MeshId = 27111419
- leftarm.BodyPart = 2
- rightarm = basemesh:Clone()
- rightarm.MeshId = 27111864
- rightarm.BodyPart = 3
- leftleg = basemesh:Clone()
- leftleg.MeshId = 27111857
- leftleg.BodyPart = 4
- rightleg = basemesh:Clone()
- rightleg.MeshId = 27111882
- rightleg.BodyPart = 5
- torso.Parent = plr.Character
- leftarm.Parent = plr.Character
- rightarm.Parent = plr.Character
- leftleg.Parent = plr.Character
- rightleg.Parent = plr.Character
- shirt = Instance.new("Shirt")
- shirt.ShirtTemplate = "rbxassetid://108129062"
- shirt.Parent = plr.Character
- pants = Instance.new("Pants")
- pants.PantsTemplate = "rbxassetid://66848496"
- pants.Parent = plr.Character
- anim = Instance.new("Animation")
- anim.AnimationId = "rbxassetid://1145241452"
- script.Parent.Parent = plr.Backpack
- animtrack = plr.Character.Humanoid:LoadAnimation(anim)
- animtrack:Play()
- else
- hint = Instance.new("Hint")
- hint.Text = "You're already an ODer!"
- hint.Parent = plr.PlayerGui
- game:GetService("Debris"):AddItem(hint,2)
- end end
- function onEquipped()
- plr = game:GetService("Players"):GetPlayerFromCharacter(script.Parent.Parent)
- Player = script.Parent.Parent
- plr.Character.Humanoid.Died:connect(function()
- alreadyoder = false
- end)
- Tool.Handle.OpenSound:play()
- end
- function onEnequipped()
- Player.Torso["Right Shoulder"].C0 = CFrame.new(1,0.5,-0) * CFrame.Angles(0,1.57,0)
- end
- script.Parent.Activated:connect(onActivated)
- script.Parent.Equipped:connect(onEquipped)
- script.Parent.Unequipped:connect(onEnequipped)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Backpack
- 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