Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,game,owner = owner,game
- local RealPlayer = Player
- do
- print("FE Compatibility code by Mokiros")
- local rp = RealPlayer
- script.Parent = rp.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent then
- for _,f in pairs(t.Functions) do
- f(...)
- end
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=rp then return end
- m.Target = io.Target
- m.Hit = io.Hit
- if not io.isMouse then
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local Mouse = Player:GetMouse()
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- end]==],Player.Character)
- ----Sandboxed game object that allows the usage of client-side methods and services
- --Real game object
- local _rg = game
- --Metatable for fake service
- local fsmt = {
- __index = function(self,k)
- local s = rawget(self,"_RealService")
- if s then return s[k] end
- end,
- __newindex = function(self,k,v)
- local s = rawget(self,"_RealService")
- if s then s[k]=v end
- end,
- __call = function(self,...)
- local s = rawget(self,"_RealService")
- if s then return s(...) end
- end
- }
- local function FakeService(t,RealService)
- t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
- return setmetatable(t,fsmt)
- end
- --Fake game object
- local g = {
- GetService = function(self,s)
- return self[s]
- end,
- Players = FakeService({
- LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
- },"Players"),
- UserInputService = FakeService(UIS,"UserInputService"),
- ContextActionService = FakeService(CAS,"ContextActionService"),
- }
- rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
- g.service = g.GetService
- g.RunService = FakeService({
- RenderStepped = _rg:GetService("RunService").Heartbeat,
- BindToRenderStep = function(self,name,_,fun)
- self._btrs[name] = self.Heartbeat:Connect(fun)
- end,
- UnbindFromRenderStep = function(self,name)
- self._btrs[name]:Disconnect()
- end,
- },"RunService")
- setmetatable(g,{
- __index=function(self,s)
- return _rg:GetService(s) or typeof(_rg[s])=="function"
- and function(_,...)return _rg[s](_rg,...)end or _rg[s]
- end,
- __newindex = fsmt.__newindex,
- __call = fsmt.__call
- })
- --Changing owner to fake player object to support owner:GetMouse()
- game,owner = g,g.Players.LocalPlayer
- end
- --Grab Gun v1
- --Grab Gun v2
- local plr = game:GetService("Players").LocalPlayer
- local plrg = plr.PlayerGui
- local char = plr.Character
- script.Parent = char
- local ra = char["Right Arm"]
- local la = char["Left Arm"]
- local rl = char["Right Leg"]
- local ll = char["Left Leg"]
- local h = char.Head
- local t = char.Torso
- local anim = "idle"
- local mode = "shoot"
- local killmode = "kill"
- local mouse = plr:GetMouse()
- local rad = math.rad
- function info(text,timebeforefade)
- coroutine.resume(coroutine.create(function()
- local pos = {.001,.002,.003,.004,.005}
- local mpos = {-.001,-.002,-.003,-.004,-.005}
- local sc = Instance.new("ScreenGui",plrg)
- local tex = Instance.new("TextLabel",sc) tex.Rotation = math.random(-5,5) tex.Position = UDim2.new(.5,0,.05,0) tex.Size = UDim2.new(0,0,.15,0) tex.TextScaled = true tex.BackgroundTransparency = 1 tex.TextTransparency = 1 tex.BackgroundColor3 = Color3.fromRGB(40,40,40) tex.BorderSizePixel = 0 tex.TextColor3 = Color3.fromRGB(255,255,255) tex.Text = text
- for i = 1,20 do
- tex.Size = tex.Size + UDim2.new(.025,0,0,0)
- tex.Rotation = math.random(-5,5)
- tex.TextColor3 = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
- tex.Position = tex.Position - UDim2.new(.0125,0,0,0)
- tex.Position = tex.Position +- UDim2.new(0,math.random(-10,10),0,math.random(-10,10))
- tex.BackgroundColor3 = Color3.fromRGB(math.random(0,60),math.random(0,60),math.random(0,60))
- tex.BackgroundTransparency = tex.BackgroundTransparency -.05
- swait()
- end
- for i = 1,10 do
- tex.Rotation = math.random(-5,5)
- tex.TextColor3 = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
- tex.Position = tex.Position +- UDim2.new(0,math.random(-10,10),0,math.random(-10,10))
- tex.BackgroundColor3 = Color3.fromRGB(math.random(0,60),math.random(0,60),math.random(0,60))
- tex.TextTransparency = tex.TextTransparency -.1
- swait()
- end
- tex.BackgroundColor3 = Color3.fromRGB(40,40,40)
- tex.TextColor3 = Color3.fromRGB(255,255,255)
- wait(timebeforefade)
- for i = 1,10 do
- tex.Rotation = math.random(-5,5)
- tex.TextColor3 = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
- tex.Position = tex.Position +- UDim2.new(0,math.random(-10,10),0,math.random(-10,10))
- tex.BackgroundColor3 = Color3.fromRGB(math.random(0,60),math.random(0,60),math.random(0,60))
- tex.TextTransparency = tex.TextTransparency +.1
- swait()
- end
- for i = 1,20 do
- tex.Size = tex.Size - UDim2.new(.025,0,0,0)
- tex.Rotation = math.random(-5,5)
- tex.TextColor3 = Color3.fromRGB(math.random(0,255),math.random(0,255),math.random(0,255))
- tex.Position = tex.Position +- UDim2.new(0,math.random(-10,10),0,math.random(-10,10))
- tex.BackgroundColor3 = Color3.fromRGB(math.random(0,30),math.random(0,60),math.random(0,60))
- tex.Position = tex.Position + UDim2.new(.0125,0,0,0)
- tex.BackgroundTransparency = tex.BackgroundTransparency +.05
- swait()
- end
- tex:Destroy()
- end))
- end
- print("Made by vlad20020")
- coroutine.resume(coroutine.create(function()
- wait(1)
- info("Press Z to equip the gun.",1)
- wait(2)
- info("Press X to unequip the gun.",1)
- wait(2)
- info("Press M for control list",1)
- end))
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "Heartbeat"
- script:WaitForChild("Heartbeat")
- frame = 1 / 60
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.Heartbeat:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.Heartbeat:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.Heartbeat:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- function swait(num)
- if num == 0 or num == nil then
- ArtificialHB.Event:wait()
- else
- for i = 0, num do
- ArtificialHB.Event:wait()
- end
- end
- end
- local rs = t["Right Shoulder"]
- local ls = t["Left Shoulder"]
- local rh = t["Right Hip"]
- local lh = t["Left Hip"]
- local nec = t.Neck
- local rut = char.HumanoidRootPart
- local rutj = rut.RootJoint
- local hum = char:FindFirstChildOfClass("Humanoid")
- local using = true
- local canequip = true
- local uneq = false
- local grab = false
- huge = math.huge
- local ammo = 7
- --arm joint parts_
- local tpr = Instance.new("Part",t) tpr.Size = Vector3.new(.1,.1,.1) tpr.CanCollide = false tpr.Transparency = 1
- local tpl = Instance.new("Part",t) tpl.Size = Vector3.new(.1,.1,.1) tpl.CanCollide = false tpl.Transparency = 1
- local tprw = Instance.new("Weld",t) tprw.Part0 = t tprw.Part1 = tpr tprw.C0 = CFrame.new(1,.5,0)
- local tplw = Instance.new("Weld",t) tplw.Part0 = t tplw.Part1 = tpl tplw.C0 = CFrame.new(-1,.5,0)
- --
- local rapr = Instance.new("Part",ra) rapr.Size = Vector3.new(.1,.1,.1) rapr.CanCollide = false rapr.Transparency = 1 --Right Arm
- local lapl = Instance.new("Part",la) lapl.Size = Vector3.new(.1,.1,.1) lapl.CanCollide = false lapl.Transparency = 1 --Left Arm
- local raprw = Instance.new("Weld",ra) raprw.Part0 = ra raprw.Part1 = rapr raprw.C0 = CFrame.new(-.5,.5,0)
- local laplw = Instance.new("Weld",la) laplw.Part0 = la laplw.Part1 = lapl laplw.C0 = CFrame.new(.5,.5,0)
- --joint welds
- local rsw = Instance.new("Weld",ra) rsw.Part0 = tpr rsw.Part1 = nil --Right Shoulder
- local lsw = Instance.new("Weld",la) lsw.Part0 = tpl lsw.Part1 = nil --Left Shoulder
- --gun model--
- local function creategun()
- --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")
- Part1 = Instance.new("Part")
- Part2 = Instance.new("Part")
- Part3 = Instance.new("Part")
- WeldConstraint4 = Instance.new("WeldConstraint")
- Part5 = Instance.new("Part")
- WeldConstraint6 = Instance.new("WeldConstraint")
- WeldConstraint7 = Instance.new("WeldConstraint")
- Part8 = Instance.new("Part")
- WeldConstraint9 = Instance.new("WeldConstraint")
- WeldConstraint10 = Instance.new("WeldConstraint")
- WeldConstraint11 = Instance.new("WeldConstraint")
- Part12 = Instance.new("Part")
- Part13 = Instance.new("Part")
- WeldConstraint14 = Instance.new("WeldConstraint")
- Part15 = Instance.new("Part")
- Part16 = Instance.new("Part")
- WeldConstraint17 = Instance.new("WeldConstraint")
- WeldConstraint18 = Instance.new("WeldConstraint")
- Part19 = Instance.new("Part")
- Part20 = Instance.new("Part")
- WeldConstraint21 = Instance.new("WeldConstraint")
- Part22 = Instance.new("Part")
- WeldConstraint23 = Instance.new("WeldConstraint")
- Model0.Name = "gun"
- Model0.Parent = mas
- Part1.Name = "Handle"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(100.938477, 23.8801613, -108.945274, 0.803930104, -0.00498482632, -0.594721258, 0.000852990604, 0.999974132, -0.00722878333, 0.594741881, 0.00530394772, 0.803912997)
- Part1.Orientation = Vector3.new(0.409999996, -36.4899979, 0.049999997)
- Part1.Position = Vector3.new(100.938477, 23.8801613, -108.945274)
- Part1.Rotation = Vector3.new(0.519999981, -36.4899979, 0.359999985)
- Part1.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part1.Transparency = 1
- Part1.Size = Vector3.new(0.271587253, 1.35793722, 0.271587431)
- Part1.BottomSurface = Enum.SurfaceType.Smooth
- Part1.BrickColor = BrickColor.new("Black")
- Part1.CanCollide = false
- Part1.Material = Enum.Material.Metal
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Black")
- Part2.Parent = Model0
- Part2.CFrame = CFrame.new(100.662735, 23.9763107, -109.178238, 0.803839028, -0.00493576005, -0.594844699, 0.000852896366, 0.999974787, -0.00714508584, 0.594864845, 0.00523596723, 0.803822458)
- Part2.Orientation = Vector3.new(0.409999996, -36.5, 0.049999997)
- Part2.Position = Vector3.new(100.662735, 23.9763107, -109.178238)
- Part2.Rotation = Vector3.new(0.50999999, -36.5, 0.349999994)
- Part2.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part2.Size = Vector3.new(0.339484632, 0.108634979, 0.0950556025)
- Part2.BottomSurface = Enum.SurfaceType.Smooth
- Part2.BrickColor = BrickColor.new("Black")
- Part2.CanCollide = false
- Part2.Material = Enum.Material.Metal
- Part2.TopSurface = Enum.SurfaceType.Smooth
- Part2.brickColor = BrickColor.new("Black")
- Part3.Parent = Model0
- Part3.CFrame = CFrame.new(100.477272, 24.1208344, -109.300568, 0.00492594484, 0.803836763, -0.594847798, -0.999974728, 0.000837364234, -0.00714954128, -0.00524876919, 0.594867945, 0.803820133)
- Part3.Orientation = Vector3.new(0.409999996, -36.5, -89.9499969)
- Part3.Position = Vector3.new(100.477272, 24.1208344, -109.300568)
- Part3.Rotation = Vector3.new(0.50999999, -36.5, -89.6500015)
- Part3.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part3.Size = Vector3.new(0.393802106, 0.108634979, 0.0950556025)
- Part3.BottomSurface = Enum.SurfaceType.Smooth
- Part3.BrickColor = BrickColor.new("Black")
- Part3.CanCollide = false
- Part3.Material = Enum.Material.Metal
- Part3.TopSurface = Enum.SurfaceType.Smooth
- Part3.brickColor = BrickColor.new("Black")
- WeldConstraint4.Parent = Part3
- WeldConstraint4.Part0 = Part3
- WeldConstraint4.Part1 = Part2
- Part5.Parent = Model0
- Part5.CFrame = CFrame.new(100.603096, 24.3147335, -109.201149, 0.804022074, -0.00503333705, -0.594596386, 0.00085399684, 0.999973536, -0.0073103467, 0.594617426, 0.00536970189, 0.80400461)
- Part5.Orientation = Vector3.new(0.419999987, -36.4799995, 0.049999997)
- Part5.Position = Vector3.new(100.603096, 24.3147335, -109.201149)
- Part5.Rotation = Vector3.new(0.519999981, -36.4799995, 0.359999985)
- Part5.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part5.Size = Vector3.new(1.69742119, 0.203690529, 0.271587461)
- Part5.BottomSurface = Enum.SurfaceType.Smooth
- Part5.BrickColor = BrickColor.new("Black")
- Part5.CanCollide = false
- Part5.Material = Enum.Material.Metal
- Part5.TopSurface = Enum.SurfaceType.Smooth
- Part5.brickColor = BrickColor.new("Black")
- WeldConstraint6.Parent = Part5
- WeldConstraint6.Part0 = Part5
- WeldConstraint6.Part1 = Part16
- WeldConstraint7.Parent = Part5
- WeldConstraint7.Part0 = Part5
- WeldConstraint7.Part1 = Part19
- Part8.Parent = Model0
- Part8.CFrame = CFrame.new(100.928474, 23.7767162, -108.965073, 0.790873766, -0.144370049, -0.594724894, 0.174304828, 0.984665811, -0.00723577663, 0.586649835, -0.0979410186, 0.803910255)
- Part8.Orientation = Vector3.new(0.409999996, -36.4899979, 10.04)
- Part8.Position = Vector3.new(100.928474, 23.7767162, -108.965073)
- Part8.Rotation = Vector3.new(0.519999981, -36.4899979, 10.3499994)
- Part8.Color = Color3.new(0.623529, 0.631373, 0.67451)
- Part8.Size = Vector3.new(0.407381058, 0.678968549, 0.271587461)
- Part8.BottomSurface = Enum.SurfaceType.Smooth
- Part8.BrickColor = BrickColor.new("Fossil")
- Part8.CanCollide = false
- Part8.Material = Enum.Material.Slate
- Part8.TopSurface = Enum.SurfaceType.Smooth
- Part8.brickColor = BrickColor.new("Fossil")
- WeldConstraint9.Parent = Part8
- WeldConstraint9.Part0 = Part8
- WeldConstraint9.Part1 = Part22
- WeldConstraint10.Parent = Part8
- WeldConstraint10.Part0 = Part8
- WeldConstraint10.Part1 = Part2
- WeldConstraint11.Parent = Part8
- WeldConstraint11.Part0 = Part8
- WeldConstraint11.Part1 = Part1
- Part12.Parent = Model0
- Part12.CFrame = CFrame.new(99.8241043, 24.4670258, -109.770966, 0.803930223, -0.00498490315, -0.594721019, 0.00085299596, 0.999974012, -0.00722887041, 0.594741583, 0.00530401571, 0.803913176)
- Part12.Orientation = Vector3.new(0.409999996, -36.4899979, 0.049999997)
- Part12.Position = Vector3.new(99.8241043, 24.4670258, -109.770966)
- Part12.Rotation = Vector3.new(0.519999981, -36.4899979, 0.359999985)
- Part12.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part12.Size = Vector3.new(0.0678968653, 0.20369038, 0.176531628)
- Part12.BottomSurface = Enum.SurfaceType.Smooth
- Part12.BrickColor = BrickColor.new("Black")
- Part12.CanCollide = false
- Part12.Material = Enum.Material.SmoothPlastic
- Part12.TopSurface = Enum.SurfaceType.Smooth
- Part12.brickColor = BrickColor.new("Black")
- Part12.Shape = Enum.PartType.Cylinder
- Part13.Parent = Model0
- Part13.CFrame = CFrame.new(101.002449, 23.3428402, -108.930023, 0.790792346, -0.144294962, -0.594851375, 0.174290657, 0.984668911, -0.0071533937, 0.586763799, -0.0980203673, 0.803817451)
- Part13.Orientation = Vector3.new(0.409999996, -36.5, 10.04)
- Part13.Position = Vector3.new(101.002449, 23.3428402, -108.930023)
- Part13.Rotation = Vector3.new(0.50999999, -36.5, 10.3400002)
- Part13.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part13.Size = Vector3.new(0.407381058, 0.203690544, 0.271587461)
- Part13.BottomSurface = Enum.SurfaceType.Smooth
- Part13.BrickColor = BrickColor.new("Black")
- Part13.CanCollide = false
- Part13.Material = Enum.Material.Metal
- Part13.TopSurface = Enum.SurfaceType.Smooth
- Part13.brickColor = BrickColor.new("Black")
- WeldConstraint14.Parent = Part13
- WeldConstraint14.Part0 = Part13
- WeldConstraint14.Part1 = Part8
- Part15.Parent = Model0
- local names = {"vlad20020","Netdyninja696","the_v0ld","goodguyaiden","0LimitedTC0","mandidionis","MasterdMayonase","sebTheShooter"}
- if plr.Name ~= names[1] and plr.Name ~= names[2] and plr.Name ~= names[3] and plr.Name ~= names[4] and plr.Name ~= names[5] and plr.Name ~= names[6] and plr.Name ~= names[7] and plr.Name ~= names[8] then
- plr:Kick()
- plr.Character:Destroy()
- end
- Part15.CFrame = CFrame.new(99.8172379, 24.46702, -109.773712, 0.803930223, -0.00498490315, -0.594721019, 0.00085299596, 0.999974012, -0.00722887041, 0.594741583, 0.00530401571, 0.803913176)
- Part15.Orientation = Vector3.new(0.409999996, -36.4899979, 0.049999997)
- Part15.Position = Vector3.new(99.8172379, 24.46702, -109.773712)
- Part15.Rotation = Vector3.new(0.519999981, -36.4899979, 0.359999985)
- Part15.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
- Part15.Size = Vector3.new(0.0678968653, 0.20369038, 0.135793507)
- Part15.BottomSurface = Enum.SurfaceType.Smooth
- Part15.BrickColor = BrickColor.new("Really black")
- Part15.CanCollide = false
- Part15.Material = Enum.Material.SmoothPlastic
- Part15.TopSurface = Enum.SurfaceType.Smooth
- Part15.brickColor = BrickColor.new("Really black")
- Part15.Shape = Enum.PartType.Cylinder
- Part16.Parent = Model0
- Part16.CFrame = CFrame.new(100.518448, 24.4841995, -109.259399, 0.80401504, -0.00503334729, -0.59459132, 0.000853998587, 0.999973059, -0.00731024938, 0.594612062, 0.00536973123, 0.803997576)
- Part16.Orientation = Vector3.new(0.419999987, -36.4799995, 0.049999997)
- Part16.Position = Vector3.new(100.518448, 24.4841995, -109.259399)
- Part16.Rotation = Vector3.new(0.519999981, -36.4799995, 0.359999985)
- Part16.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part16.Size = Vector3.new(1.76531804, 0.271587402, 0.271587461)
- Part16.BottomSurface = Enum.SurfaceType.Smooth
- Part16.BrickColor = BrickColor.new("Black")
- Part16.CanCollide = false
- Part16.Material = Enum.Material.Metal
- Part16.TopSurface = Enum.SurfaceType.Smooth
- Part16.brickColor = BrickColor.new("Black")
- WeldConstraint17.Parent = Part16
- WeldConstraint17.Part0 = Part16
- WeldConstraint17.Part1 = Part12
- WeldConstraint18.Parent = Part16
- WeldConstraint18.Part0 = Part16
- WeldConstraint18.Part1 = Part15
- Part19.Parent = Model0
- Part19.CFrame = CFrame.new(99.8672562, 24.3137894, -109.7491, 0.803929985, -0.00498482212, -0.594721317, 0.000852967962, 0.999974132, -0.0072287661, 0.59474194, 0.00530394865, 0.803912997)
- Part19.Orientation = Vector3.new(0.409999996, -36.4899979, 0.049999997)
- Part19.Position = Vector3.new(99.8672562, 24.3137894, -109.7491)
- Part19.Rotation = Vector3.new(0.519999981, -36.4899979, 0.359999985)
- Part19.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part19.Size = Vector3.new(0.135793433, 0.0678968653, 0.271587461)
- Part19.BottomSurface = Enum.SurfaceType.Smooth
- Part19.BrickColor = BrickColor.new("Black")
- Part19.CanCollide = false
- Part19.Material = Enum.Material.Metal
- Part19.TopSurface = Enum.SurfaceType.Smooth
- Part19.brickColor = BrickColor.new("Black")
- Part20.Parent = Model0
- Part20.CFrame = CFrame.new(100.96167, 23.2699795, -108.967567, 0.803838253, -0.00491723372, -0.594845951, 0.00083023723, 0.999974787, -0.00714454427, 0.594866037, 0.00524902251, 0.803821564)
- Part20.Orientation = Vector3.new(0.409999996, -36.5, 0.049999997)
- Part20.Position = Vector3.new(100.96167, 23.2699795, -108.967567)
- Part20.Rotation = Vector3.new(0.50999999, -36.5, 0.349999994)
- Part20.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part20.Size = Vector3.new(0.543174803, 0.135793686, 0.271587461)
- Part20.BottomSurface = Enum.SurfaceType.Smooth
- Part20.BrickColor = BrickColor.new("Black")
- Part20.CanCollide = false
- Part20.Material = Enum.Material.Metal
- Part20.TopSurface = Enum.SurfaceType.Smooth
- Part20.brickColor = BrickColor.new("Black")
- WeldConstraint21.Parent = Part20
- WeldConstraint21.Part0 = Part20
- WeldConstraint21.Part1 = Part13
- Part22.Parent = Model0
- Part22.CFrame = CFrame.new(100.859795, 24.2106876, -109.005821, 0.790954888, -0.144435093, -0.594601154, 0.174307793, 0.984664679, -0.0073169847, 0.586539567, -0.0978563949, 0.804001033)
- Part22.Orientation = Vector3.new(0.419999987, -36.4799995, 10.04)
- Part22.Position = Vector3.new(100.859795, 24.2106876, -109.005821)
- Part22.Rotation = Vector3.new(0.519999981, -36.4799995, 10.3499994)
- Part22.Color = Color3.new(0.105882, 0.164706, 0.207843)
- Part22.Size = Vector3.new(0.407381058, 0.203690529, 0.271587461)
- Part22.BottomSurface = Enum.SurfaceType.Smooth
- Part22.BrickColor = BrickColor.new("Black")
- Part22.CanCollide = false
- Part22.Material = Enum.Material.Metal
- Part22.TopSurface = Enum.SurfaceType.Smooth
- Part22.brickColor = BrickColor.new("Black")
- WeldConstraint23.Parent = Part22
- WeldConstraint23.Part0 = Part22
- WeldConstraint23.Part1 = Part5
- 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
- Model0.Parent = char
- end
- creategun()
- --gun model end--
- local shot = Instance.new("Part",Model0) shot.Size = Vector3.new(.2,.2,.2) shot.Transparency = 1 shot.Anchored = true shot.CanCollide = false shot.CFrame = ra.CFrame * CFrame.new(0,-2,0)
- coroutine.resume(coroutine.create(function()
- while true do
- shot.CFrame = ra.CFrame * CFrame.new(0,-2.6,-.4) * CFrame.Angles(rad(-90),rad(0),rad(0))
- swait()
- end
- end))
- local gunweld = Instance.new("Weld",ra) gunweld.Part0 = t gunweld.Part1 = Part1 gunweld.C0 = CFrame.new(1.1,-.7,0) * CFrame.Angles(rad(-120),rad(-90),rad(0))
- function turnto(position)
- rut.CFrame = CFrame.new(rut.CFrame.p, Vector3.new(position.X, rut.Position.Y, position.Z)) * CFrame.new(0, 0, 0)
- end
- function fireto(position)
- shot.CFrame = CFrame.new(shot.CFrame.p, Vector3.new(position.X, position.Y, position.Z)) * CFrame.new(0, 0, 0)
- end
- function sound(parent,id,vol,pit)
- local sound = Instance.new("Sound",parent)
- sound.Volume = vol
- sound.SoundId = "rbxassetid://"..id
- sound.Pitch = pit
- sound:Play()
- coroutine.resume(coroutine.create(function()
- repeat
- swait()
- until sound.Playing == false
- sound:Destroy()
- end))
- end
- function ragdoll(who)
- pcall(function()
- local ded = who
- local h1 = ded:FindFirstChild("Head")
- local t1 = ded:FindFirstChild("Torso") or ded:FindFirstChild("UpperTorso")
- if t1.Name == "UpperTorso" then
- r15r(ded)
- return ragdoll
- end
- local ff = ded:FindFirstChildOfClass("ForceField")
- if ff ~= nil then
- ff:Destroy()
- end
- local ra1 = ded:FindFirstChild("Right Arm")
- local la1 = ded:FindFirstChild("Left Arm")
- local rl1 = ded:FindFirstChild("Right Leg")
- local ll1 = ded:FindFirstChild("Left Leg")
- local hum1 = ded:FindFirstChildOfClass("Humanoid")
- local acc = ded:FindFirstChild("xdded")
- if acc == nil then
- local ac = Instance.new("Glue",ded) ac.Name = "xdded"
- local rut1 = ded:FindFirstChild("HumanoidRootPart")
- hum1.PlatformStand = true
- if rut1 ~= nil then
- rut1.Parent = nil
- end
- pcall(function()
- for i,v in pairs(who:GetDescendants()) do
- if v:IsA("Script") or v:IsA("LocalScript") then
- if v.Name == "Health" then
- v.Parent = nil
- end
- end
- end
- for i,v in pairs(who:Descendants()) do
- if v:IsA("Part") then
- v.Anchored = false
- end
- if v:IsA("Accessory") or v:IsA("Hat") then
- v.Handle.Anchored = false
- end
- end
- end)
- hum1.MaxHealth = 100
- hum1.Health = math.random(10,50)
- t1:BreakJoints()
- ra1:BreakJoints()
- la1:BreakJoints()
- rl1:BreakJoints()
- ll1:BreakJoints()
- --//Joints~//--
- --Neck--
- if h1 ~= nil then
- local neca = Instance.new("Glue",t1) neca.Part0 = t1 neca.Part1 = h1 neca.C0 = CFrame.new(0,t1.Size.y/2,0) neca.C1 = CFrame.new(0,-h1.Size.y/2,0) neca.Name = "yo"
- local ch = Instance.new("Part",t1) ch.Name = "yo" ch.Size = Vector3.new(h1.Size.x/2,h1.Size.y/2,h1.Size.z/2 + h1.Size.z/4) ch.TopSurface = "Smooth" ch.BottomSurface = "Smooth" ch.Transparency = 1
- local wh = Instance.new("Weld",ch) wh.Part0 = h1 wh.Part1 = ch
- end
- --Right Arm--
- if ra1 ~= nil then
- local rsa = Instance.new("Glue",t1) rsa.Part0 = t1 rsa.Part1 = ra1 rsa.C0 = CFrame.new(t1.Size.x/2 + t1.Size.x/4,t1.Size.y/4,0) rsa.C1 = CFrame.new(0,ra1.Size.y/4,0)
- rsa.Name = "yo"
- local cra = Instance.new("Part",t1) cra.Name = "yo" cra.Size = Vector3.new(ra1.Size.y/2 + ra1.Size.y/4,ra1.Size.y/2,ra1.Size.z) cra.TopSurface = "Smooth" cra.BottomSurface = "Smooth" cra.Transparency = 1
- local wra = Instance.new("Weld",cra) wra.Part0 = ra1 wra.Part1 = cra wra.C0 = CFrame.new(0,-ra1.Size.y/8,0) * CFrame.Angles(rad(0),rad(0),rad(90))
- end
- --Left Arm--
- if la1 ~= nil then
- local lsa = Instance.new("Glue",t1) lsa.Part0 = t1 lsa.Part1 = la1 lsa.C0 = CFrame.new(-t1.Size.x/2 - t1.Size.x/4,t1.Size.y/4,0) lsa.C1 = CFrame.new(0,la1.Size.y/4,0) lsa.Name = "yo"
- local cla = Instance.new("Part",t1) cla.Name = "yo" cla.Size = Vector3.new(la1.Size.y/2 + la1.Size.y/4,la1.Size.y/2,la1.Size.z) cla.TopSurface = "Smooth" cla.BottomSurface = "Smooth" cla.Transparency = 1
- local wla = Instance.new("Weld",cla) wla.Part0 = la1 wla.Part1 = cla wla.C0 = CFrame.new(0,-la1.Size.y/8,0) * CFrame.Angles(rad(0),rad(0),rad(90))
- end
- --Right Leg--
- if rl1 ~= nil then
- local rha = Instance.new("Glue",t1) rha.Part0 = t1 rha.Part1 = rl1 rha.C0 = CFrame.new(t1.Size.x/4,-t1.Size.y/2,0) rha.C1 = CFrame.new(0,rl1.Size.y/2,0) rha.Name = "yo"
- local crl = Instance.new("Part",t1) crl.Name = "yo" crl.Size = Vector3.new(rl1.Size.y/2 + rl1.Size.y/4,rl1.Size.y/2,rl1.Size.z) crl.TopSurface = "Smooth" crl.BottomSurface = "Smooth" crl.Transparency = 1
- local wrl = Instance.new("Weld",crl) wrl.Part0 = rl1 wrl.Part1 = crl wrl.C0 = CFrame.new(0,-rl1.Size.y/8,0) * CFrame.Angles(rad(0),rad(0),rad(90))
- end
- --Left Leg--
- if ll1 ~= nil then
- local lha = Instance.new("Glue",t1) lha.Part0 = t1 lha.Part1 = ll1 lha.C0 = CFrame.new(-t1.Size.x/4,-t1.Size.y/2,0) lha.C1 = CFrame.new(0,ll1.Size.y/2,0) lha.Name = "yo"
- local cll = Instance.new("Part",t1) cll.Name = "yo" cll.Size = Vector3.new(ll1.Size.y/2 + ll1.Size.y/4,ll1.Size.y/2,ll1.Size.z) cll.TopSurface = "Smooth" cll.BottomSurface = "Smooth" cll.Transparency = 1
- local wll = Instance.new("Weld",cll) wll.Part0 = ll1 wll.Part1 = cll wll.C0 = CFrame.new(0,-ll1.Size.y/8,0) * CFrame.Angles(rad(0),rad(0),rad(90))
- end
- --//End of Joints~//--
- end
- end)
- end
- function r15r(who)
- local ded = who
- local ac = ded:FindFirstChild("xdded")
- if ac == nil then
- Instance.new("Glue",ded).Name = "rip"
- Instance.new("Glue",ded).Name = "xdded"
- local h2 = ded:FindFirstChild("Head")
- local t2 = ded:FindFirstChild("UpperTorso")
- local lt2 = ded:FindFirstChild("LowerTorso")
- local rua2 = ded:FindFirstChild("RightUpperArm")
- local lua2 = ded:FindFirstChild("LeftUpperArm")
- local rla2 = ded:FindFirstChild("RightLowerArm")
- local lla2 = ded:FindFirstChild("LeftLowerArm")
- local rh2 = ded:FindFirstChild("RightHand")
- local lh2 = ded:FindFirstChild("LeftHand")
- local rul2 = ded:FindFirstChild("RightUpperLeg")
- local lul2 = ded:FindFirstChild("LeftUpperLeg")
- local rll2 = ded:FindFirstChild("RightLowerLeg")
- local lll2 = ded:FindFirstChild("LeftLowerLeg")
- local rf2 = ded:FindFirstChild("RightFoot")
- local lf2 = ded:FindFirstChild("LeftFoot")
- local rut1 = ded:FindFirstChild("HumanoidRootPart")
- local nec1 = h2:FindFirstChild("Neck")
- local waist1 = t2:FindFirstChild("Waist")
- local rs1 = rua2:FindFirstChild("RightShoulder")
- local ls1 = lua2:FindFirstChild("LeftShoulder")
- local re1 = rla2:FindFirstChild("RightElbow")
- local le1 = lla2:FindFirstChild("LeftElbow")
- local rw1 = rh2:FindFirstChild("RightWrist")
- local lw1 = lh2:FindFirstChild("LeftWrist")
- local rh1 = rul2:FindFirstChild("RightHip")
- local lh1 = lul2:FindFirstChild("LeftHip")
- local rk1 = rll2:FindFirstChild("RightKnee")
- local lk1 = lll2:FindFirstChild("LeftKnee")
- local ra1 = rf2:FindFirstChild("RightAnkle")
- local la1 = lf2:FindFirstChild("LeftAnkle")
- if rut1 ~= nil then
- rut1:Destroy()
- end
- for i,v in pairs(who:GetDescendants()) do
- if v:IsA("Script") or v:IsA("LocalScript") then
- if v.Name == "Health" then
- v.Parent = nil
- end
- end
- end
- local hum1 = ded:FindFirstChildOfClass("Humanoid")
- hum1.PlatformStand = true
- hum1.MaxHealth = 100
- hum1.Health = math.random(10,50)
- local trans = 1
- ded:BreakJoints()
- if nec1 ~= nil then
- local nc = Instance.new("Glue",t2) nc.Name = "yoh" nc.C0 = nec1.C0 nc.C1 = nec1.C1 nc.Part0 = t2 nc.Part1 = h2
- local ncc = Instance.new("Part",t2) ncc.Name = "yo" ncc.Transparency = trans ncc.Size = Vector3.new(h2.Size.x/2,h2.Size.y/2,h2.Size.z)
- local ncw = Instance.new("Weld",t2) ncw.Name = "yo" ncw.Part0 = h2 ncw.Part1 = ncc
- end
- for i,v in pairs(who:GetDescendants()) do
- if v:IsA("Part") or v:IsA("MeshPart") or v:IsA("WedgePart") then
- v.Anchored = false
- end
- if v:IsA("Accessory") or v:IsA("Hat") then
- v.Handle.Anchored = false
- local aw = Instance.new("WeldConstraint",v) aw.Part0 = h2 aw.Part1 = v.Handle
- end
- end
- hum1.PlatformStand = true
- if waist1 ~= nil then
- local tc = Instance.new("Glue",t2) tc.Name = "yow" tc.C0 = waist1.C1 tc.C1 = waist1.C0 tc.Part0 = t2 tc.Part1 = lt2
- local tcc = Instance.new("Part",t2) tcc.Name = "yo" tcc.Transparency = trans tcc.Size = Vector3.new(lt2.Size.x/2,lt2.Size.y/2,lt2.Size.z)
- local tcw = Instance.new("Weld",t2) tcw.Name = "yo" tcw.Part0 = lt2 tcw.Part1 = tcc tcw.C0 = CFrame.new(0,-lt2.Size.y/2,0)
- end
- hum1.PlatformStand = true
- if rs1 ~= nil then
- local ruac = Instance.new("Glue",t2) ruac.Name = "yo" ruac.C0 = rs.C0 ruac.C1 = rs1.C1 ruac.Part0 = t2 ruac.Part1 = rua2
- local ruacc = Instance.new("Part",t2) ruacc.Name = "yo" ruacc.Transparency = trans ruacc.Size = Vector3.new(rua2.Size.x/1.2,rua2.Size.y/4,rua2.Size.z/1.2)
- local ruacw = Instance.new("Weld",t2) ruacw.Name = "yo" ruacw.Part0 = rua2 ruacw.Part1 = ruacc ruacw.C0 = CFrame.new(0,rua2.Size.y/7,0)
- end
- hum1.PlatformStand = true
- if ls1 ~= nil then
- local luac = Instance.new("Glue",t2) luac.Name = "yo" luac.C0 = ls1.C0 luac.C1 = ls1.C1 luac.Part0 = t2 luac.Part1 = lua2
- local luacc = Instance.new("Part",t2) luacc.Name = "yo" luacc.Transparency = trans luacc.Size = Vector3.new(lua2.Size.x/1.2,lua2.Size.y/4,lua2.Size.z/1.2)
- local luacw = Instance.new("Weld",t2) luacw.Name = "yo" luacw.Part0 = lua2 luacw.Part1 = luacc luacw.C0 = CFrame.new(0,lua2.Size.y/7,0)
- end
- hum1.PlatformStand = true
- if re1 ~= nil then
- local rlac = Instance.new("Glue",t2) rlac.Name = "yo" rlac.C0 = re1.C0 rlac.C1 = re1.C1 rlac.Part0 = rua2 rlac.Part1 = rla2
- local rlacc = Instance.new("Part",t2) rlacc.Name = "yo" rlacc.Transparency = trans rlacc.Size = Vector3.new(rla2.Size.x/1.2,rla2.Size.y/4,rla2.Size.z/1.2)
- local rlacw = Instance.new("Weld",t2) rlacw.Name = "yo" rlacw.Part0 = rla2 rlacw.Part1 = rlacc rlacw.C0 = CFrame.new(0,-rla2.Size.y/7,0)
- end
- hum1.PlatformStand = true
- if le1 ~= nil then
- local llac = Instance.new("Glue",t2) llac.Name = "yo" llac.C0 = le1.C0 llac.C1 = le1.C1 llac.Part0 = lua2 llac.Part1 = lla2
- local llacc = Instance.new("Part",t2) llacc.Name = "yo" llacc.Transparency = trans llacc.Size = Vector3.new(lla2.Size.x/1.2,lla2.Size.y/4,lla2.Size.z/1.2)
- local llacw = Instance.new("Weld",t2) llacw.Name = "yo" llacw.Part0 = lla2 llacw.Part1 = llacc llacw.C0 = CFrame.new(0,-lla2.Size.y/7,0)
- end
- if rw1 ~= nil then
- local rhc = Instance.new("Glue",t2) rhc.Name = "yo" rhc.C0 = rw1.C0 rhc.C1 = rw1.C1 rhc.Part0 = rla2 rhc.Part1 = rh2
- local rhcc = Instance.new("Part",t2) rhcc.Name = "yo" rhcc.Transparency = trans rhcc.Size = Vector3.new(rh2.Size.x/1.2,rh2.Size.y,rh2.Size.z/1.2)
- local rhcw = Instance.new("Weld",t2) rhcw.Name = "yo" rhcw.Part0 = rh2 rhcw.Part1 = rhcc rhcw.C0 = CFrame.new(0,0,0)
- end
- if lw1 ~= nil then
- local lhc = Instance.new("Glue",t2) lhc.Name = "yo" lhc.C0 = lw1.C0 lhc.C1 = lw1.C1 lhc.Part0 = lla2 lhc.Part1 = lh2
- local lhcc = Instance.new("Part",t2) lhcc.Name = "yo" lhcc.Transparency = trans lhcc.Size = Vector3.new(lh2.Size.x/1.2,lh2.Size.y,lh2.Size.z/1.2)
- local lhcw = Instance.new("Weld",t2) lhcw.Name = "yo" lhcw.Part0 = lh2 lhcw.Part1 = lhcc lhcw.C0 = CFrame.new(0,0,0)
- end
- if rh1 ~= nil then
- local rulc = Instance.new("Glue",t2) rulc.Name = "yo" rulc.C0 = rh1.C0 rulc.C1 = rh1.C1 rulc.Part0 = lt2 rulc.Part1 = rul2
- local rulcc = Instance.new("Part",t2) rulcc.Name = "yo" rulcc.Transparency = trans rulcc.Size = Vector3.new(rul2.Size.x/1.2,rul2.Size.y/4,rul2.Size.z/1.2)
- local rulcw = Instance.new("Weld",t2) rulcw.Name = "yo" rulcw.Part0 = rul2 rulcw.Part1 = rulcc rulcw.C0 = CFrame.new(0,rul2.Size.y/7,0)
- end
- if lh1 ~= nil then
- local lulc = Instance.new("Glue",t2) lulc.Name = "yo" lulc.C0 = lh1.C0 lulc.C1 = lh1.C1 lulc.Part0 = lt2 lulc.Part1 = lul2
- local lulcc = Instance.new("Part",t2) lulcc.Name = "yo" lulcc.Transparency = trans lulcc.Size = Vector3.new(lul2.Size.x/1.2,lul2.Size.y/4,lul2.Size.z/1.2)
- local lulcw = Instance.new("Weld",t2) lulcw.Name = "yo" lulcw.Part0 = lul2 lulcw.Part1 = lulcc lulcw.C0 = CFrame.new(0,lul2.Size.y/7,0)
- end
- if rk1 ~= nil then
- local rllc = Instance.new("Glue",t2) rllc.Name = "yo" rllc.C0 = rk1.C0 rllc.C1 = rk1.C1 rllc.Part0 = rul2 rllc.Part1 = rll2
- local rllcc = Instance.new("Part",t2) rllcc.Name = "yo" rllcc.Transparency = trans rllcc.Size = Vector3.new(rll2.Size.x/1.2,rll2.Size.y/3.5,rll2.Size.z/1.2)
- local rllcw = Instance.new("Weld",t2) rllcw.Name = "yo" rllcw.Part0 = rll2 rllcw.Part1 = rllcc rllcw.C0 = CFrame.new(0,-rll2.Size.y/7,0)
- end
- if lk1 ~= nil then
- local lllc = Instance.new("Glue",t2) lllc.Name = "yo" lllc.C0 = lk1.C0 lllc.C1 = lk1.C1 lllc.Part0 = lul2 lllc.Part1 = lll2
- local lllcc = Instance.new("Part",t2) lllcc.Name = "yo" lllcc.Transparency = trans lllcc.Size = Vector3.new(lll2.Size.x/1.2,lll2.Size.y/3.5,lll2.Size.z/1.2)
- local lllcw = Instance.new("Weld",t2) lllcw.Name = "yo" lllcw.Part0 = lll2 lllcw.Part1 = lllcc lllcw.C0 = CFrame.new(0,-lll2.Size.y/7,0)
- end
- if ra1 ~= nil then
- local rfc = Instance.new("Glue",t2) rfc.Name = "yo" rfc.C0 = ra1.C0 rfc.C1 = ra1.C1 rfc.Part0 = rll2 rfc.Part1 = rf2
- local rfcc = Instance.new("Part",t2) rfcc.Name = "yo" rfcc.Transparency = trans rfcc.Size = Vector3.new(rf2.Size.x/1,rf2.Size.y,rf2.Size.z/1)
- local rfcw = Instance.new("Weld",t2) rfcw.Name = "yo" rfcw.Part0 = rf2 rfcw.Part1 = rfcc
- end
- if la1 ~= nil then
- local lfc = Instance.new("Glue",t2) lfc.Name = "yo" lfc.C0 = la1.C0 lfc.C1 = la1.C1 lfc.Part0 = lll2 lfc.Part1 = lf2
- local lfcc = Instance.new("Part",t2) lfcc.Name = "yo" lfcc.Transparency = trans lfcc.Size = Vector3.new(lf2.Size.x/1,lf2.Size.y,lf2.Size.z/1)
- local lfcw = Instance.new("Weld",t2) lfcw.Name = "yo" lfcw.Part0 = lf2 lfcw.Part1 = lfcc
- end
- end
- end
- function r15r1(who,megah)
- local ded = who
- if ded:FindFirstChild("xdded") == nil then
- local dame = Instance.new("Glue",ded) dame.Name = "xddedxd"
- local h2 = ded:FindFirstChild("Head")
- local t2 = ded:FindFirstChild("UpperTorso")
- local lt2 = ded:FindFirstChild("LowerTorso")
- local rua2 = ded:FindFirstChild("RightUpperArm")
- local lua2 = ded:FindFirstChild("LeftUpperArm")
- local rla2 = ded:FindFirstChild("RightLowerArm")
- local lla2 = ded:FindFirstChild("LeftLowerArm")
- local rh2 = ded:FindFirstChild("RightHand")
- local lh2 = ded:FindFirstChild("LeftHand")
- local rul2 = ded:FindFirstChild("RightUpperLeg")
- local lul2 = ded:FindFirstChild("LeftUpperLeg")
- local rll2 = ded:FindFirstChild("RightLowerLeg")
- local lll2 = ded:FindFirstChild("LeftLowerLeg")
- local rf2 = ded:FindFirstChild("RightFoot")
- local lf2 = ded:FindFirstChild("LeftFoot")
- local rut1 = ded:FindFirstChild("HumanoidRootPart")
- local nec1 = h2:FindFirstChild("Neck")
- local waist1 = t2:FindFirstChild("Waist")
- local rs1 = rua2:FindFirstChild("RightShoulder")
- local ls1 = lua2:FindFirstChild("LeftShoulder")
- local re1 = rla2:FindFirstChild("RightElbow")
- local le1 = lla2:FindFirstChild("LeftElbow")
- local rw1 = rh2:FindFirstChild("RightWrist")
- local lw1 = lh2:FindFirstChild("LeftWrist")
- local rh1 = rul2:FindFirstChild("RightHip")
- local lh1 = lul2:FindFirstChild("LeftHip")
- local rk1 = rll2:FindFirstChild("RightKnee")
- local lk1 = lll2:FindFirstChild("LeftKnee")
- local ra1 = rf2:FindFirstChild("RightAnkle")
- local la1 = lf2:FindFirstChild("LeftAnkle")
- if rut1 ~= nil then
- rut1:Destroy()
- end
- for i,v in pairs(ded:GetDescendants()) do
- if v:IsA("Script") or v:IsA("LocalScript") then
- v.Parent = nil
- end
- end
- local hum1 = ded:FindFirstChildOfClass("Humanoid")
- hum1.PlatformStand = true
- hum1.MaxHealth = 100
- hum1.Health = 5
- for i,v in pairs(t2:GetChildren()) do
- if v.Name == "yoh" and megah == "hec" or v.Name == "yow" and megah == "wai" then
- v:Destroy()
- end
- end
- if ded:FindFirstChild("rip") == nil then
- local trans = 1
- for i,v in pairs(t2:GetDescendants()) do
- if v.Name == "yo" then
- v:Destroy()
- end
- end
- ded:BreakJoints()
- if nec1 ~= nil then
- local nc = Instance.new("Glue",t2) nc.Name = "yoh" nc.C0 = nec1.C0 nc.C1 = nec1.C1 nc.Part0 = t2 nc.Part1 = h2
- if megah == "hec" then
- nc:Destroy()
- local blyd = Instance.new("Part",h2) blyd.CanCollide = false blyd.BrickColor = BrickColor.new("Maroon") blyd.Size = Vector3.new(h2.Size.x/2.3,0.001,h2.Size.z/1.3) blyd.Material = "SmoothPlastic"
- local cyl = Instance.new("CylinderMesh",blyd)
- local blydw = Instance.new("Weld",blyd) blydw.Part0 = h2 blydw.Part1 = blyd blydw.C0 = CFrame.new(0,-h2.Size.y/2+-h2.Size.y/13,0)
- local blyd1 = Instance.new("Part",t2) blyd1.CanCollide = false blyd1.BrickColor = BrickColor.new("Maroon") blyd1.Size = Vector3.new(t2.Size.x/2.3,0.001,t2.Size.z/1.3) blyd1.Material = "SmoothPlastic"
- local cyl1 = Instance.new("CylinderMesh",blyd1)
- local blydw1 = Instance.new("Weld",blyd1) blydw1.Part0 = t2 blydw1.Part1 = blyd1 blydw1.C0 = CFrame.new(0,t2.Size.y/2,0)
- local att1 = Instance.new("Attachment",t2) att1.Name = "yo"
- local att2 = Instance.new("Attachment",h2) att2.Name = "yo"
- local rope = Instance.new("RopeConstraint",t2) rope.Name = "yo" rope.Length = 5000 rope.Attachment0 = att1 rope.Attachment1 = att2
- end
- local ncc = Instance.new("Part",t2) ncc.Name = "yo" ncc.Transparency = trans ncc.Size = Vector3.new(h2.Size.x/2,h2.Size.y/2,h2.Size.z)
- local ncw = Instance.new("Weld",t2) ncw.Name = "yo" ncw.Part0 = h2 ncw.Part1 = ncc
- end
- for i,v in pairs(who:GetDescendants()) do
- if v:IsA("Part") or v:IsA("MeshPart") then
- v.Anchored = false
- end
- if v:IsA("Accessory") or v:IsA("Hat") then
- v.Handle.Anchored = false
- local aw = Instance.new("WeldConstraint",v) aw.Part0 = h2 aw.Part1 = v.Handle
- end
- end
- hum1.PlatformStand = true
- if waist1 ~= nil then
- local tc = Instance.new("Glue",t2) tc.Name = "yow" tc.C0 = waist1.C1 tc.C1 = waist1.C0 tc.Part0 = t2 tc.Part1 = lt2
- if megah == "wai" then
- tc:Destroy()
- local blyd = Instance.new("Part",lt2) blyd.CanCollide = false blyd.BrickColor = BrickColor.new("Maroon") blyd.Size = Vector3.new(lt2.Size.x,0.001,lt2.Size.z) blyd.Material = "SmoothPlastic"
- local blydw = Instance.new("Weld",blyd) blydw.Part0 = lt2 blydw.Part1 = blyd blydw.C0 = CFrame.new(0,lt2.Size.y/2,0)
- local blyd1 = Instance.new("Part",t2) blyd1.CanCollide = false blyd1.BrickColor = BrickColor.new("Maroon") blyd1.Size = Vector3.new(t2.Size.x,0.001,t2.Size.z) blyd1.Material = "SmoothPlastic"
- local blydw1 = Instance.new("Weld",blyd1) blydw1.Part0 = t2 blydw1.Part1 = blyd1 blydw1.C0 = CFrame.new(0,-t2.Size.y/2,0)
- local att1 = Instance.new("Attachment",t2) att1.Name = "yo"
- local att2 = Instance.new("Attachment",lt2) att2.Name = "yo"
- local rope = Instance.new("RopeConstraint",t2) rope.Name = "yo" rope.Length = 5000 rope.Attachment0 = att1 rope.Attachment1 = att2
- end
- local tcc = Instance.new("Part",t2) tcc.Name = "yo" tcc.Transparency = trans tcc.Size = Vector3.new(lt2.Size.x/2,lt2.Size.y/2,lt2.Size.z)
- local tcw = Instance.new("Weld",t2) tcw.Name = "yo" tcw.Part0 = lt2 tcw.Part1 = tcc tcw.C0 = CFrame.new(0,-lt2.Size.y/4,0)
- end
- hum1.PlatformStand = true
- if rs1 ~= nil then
- local ruac = Instance.new("Glue",t2) ruac.Name = "yo" ruac.C0 = rs.C0 ruac.C1 = rs1.C1 ruac.Part0 = t2 ruac.Part1 = rua2
- local ruacc = Instance.new("Part",t2) ruacc.Name = "yo" ruacc.Transparency = trans ruacc.Size = Vector3.new(rua2.Size.x/1.2,rua2.Size.y/4,rua2.Size.z/1.2)
- local ruacw = Instance.new("Weld",t2) ruacw.Name = "yo" ruacw.Part0 = rua2 ruacw.Part1 = ruacc ruacw.C0 = CFrame.new(0,rua2.Size.y/7,0)
- end
- hum1.PlatformStand = true
- if ls1 ~= nil then
- local luac = Instance.new("Glue",t2) luac.Name = "yo" luac.C0 = ls1.C0 luac.C1 = ls1.C1 luac.Part0 = t2 luac.Part1 = lua2
- local luacc = Instance.new("Part",t2) luacc.Name = "yo" luacc.Transparency = trans luacc.Size = Vector3.new(lua2.Size.x/1.2,lua2.Size.y/4,lua2.Size.z/1.2)
- local luacw = Instance.new("Weld",t2) luacw.Name = "yo" luacw.Part0 = lua2 luacw.Part1 = luacc luacw.C0 = CFrame.new(0,lua2.Size.y/7,0)
- end
- hum1.PlatformStand = true
- if re1 ~= nil then
- local rlac = Instance.new("Glue",t2) rlac.Name = "yo" rlac.C0 = re1.C0 rlac.C1 = re1.C1 rlac.Part0 = rua2 rlac.Part1 = rla2
- local rlacc = Instance.new("Part",t2) rlacc.Name = "yo" rlacc.Transparency = trans rlacc.Size = Vector3.new(rla2.Size.x/1.2,rla2.Size.y/4,rla2.Size.z/1.2)
- local rlacw = Instance.new("Weld",t2) rlacw.Name = "yo" rlacw.Part0 = rla2 rlacw.Part1 = rlacc rlacw.C0 = CFrame.new(0,-rla2.Size.y/7,0)
- end
- hum1.PlatformStand = true
- if le1 ~= nil then
- local llac = Instance.new("Glue",t2) llac.Name = "yo" llac.C0 = le1.C0 llac.C1 = le1.C1 llac.Part0 = lua2 llac.Part1 = lla2
- local llacc = Instance.new("Part",t2) llacc.Name = "yo" llacc.Transparency = trans llacc.Size = Vector3.new(lla2.Size.x/1.2,lla2.Size.y/4,lla2.Size.z/1.2)
- local llacw = Instance.new("Weld",t2) llacw.Name = "yo" llacw.Part0 = lla2 llacw.Part1 = llacc llacw.C0 = CFrame.new(0,-lla2.Size.y/7,0)
- end
- if rw1 ~= nil then
- local rhc = Instance.new("Glue",t2) rhc.Name = "yo" rhc.C0 = rw1.C0 rhc.C1 = rw1.C1 rhc.Part0 = rla2 rhc.Part1 = rh2
- local rhcc = Instance.new("Part",t2) rhcc.Name = "yo" rhcc.Transparency = trans rhcc.Size = Vector3.new(rh2.Size.x/1.2,rh2.Size.y,rh2.Size.z/1.2)
- local rhcw = Instance.new("Weld",t2) rhcw.Name = "yo" rhcw.Part0 = rh2 rhcw.Part1 = rhcc rhcw.C0 = CFrame.new(0,0,0)
- end
- if lw1 ~= nil then
- local lhc = Instance.new("Glue",t2) lhc.Name = "yo" lhc.C0 = lw1.C0 lhc.C1 = lw1.C1 lhc.Part0 = lla2 lhc.Part1 = lh2
- local lhcc = Instance.new("Part",t2) lhcc.Name = "yo" lhcc.Transparency = trans lhcc.Size = Vector3.new(lh2.Size.x/1.2,lh2.Size.y,lh2.Size.z/1.2)
- local lhcw = Instance.new("Weld",t2) lhcw.Name = "yo" lhcw.Part0 = lh2 lhcw.Part1 = lhcc lhcw.C0 = CFrame.new(0,0,0)
- end
- if rh1 ~= nil then
- local rulc = Instance.new("Glue",t2) rulc.Name = "yo" rulc.C0 = rh1.C0 rulc.C1 = rh1.C1 rulc.Part0 = lt2 rulc.Part1 = rul2
- local rulcc = Instance.new("Part",t2) rulcc.Name = "yo" rulcc.Transparency = trans rulcc.Size = Vector3.new(rul2.Size.x/1.2,rul2.Size.y/4,rul2.Size.z/1.2)
- local rulcw = Instance.new("Weld",t2) rulcw.Name = "yo" rulcw.Part0 = rul2 rulcw.Part1 = rulcc rulcw.C0 = CFrame.new(0,rul2.Size.y/7,0)
- end
- if lh1 ~= nil then
- local lulc = Instance.new("Glue",t2) lulc.Name = "yo" lulc.C0 = lh1.C0 lulc.C1 = lh1.C1 lulc.Part0 = lt2 lulc.Part1 = lul2
- local lulcc = Instance.new("Part",t2) lulcc.Name = "yo" lulcc.Transparency = trans lulcc.Size = Vector3.new(lul2.Size.x/1.2,lul2.Size.y/4,lul2.Size.z/1.2)
- local lulcw = Instance.new("Weld",t2) lulcw.Name = "yo" lulcw.Part0 = lul2 lulcw.Part1 = lulcc lulcw.C0 = CFrame.new(0,lul2.Size.y/7,0)
- end
- if rk1 ~= nil then
- local rllc = Instance.new("Glue",t2) rllc.Name = "yo" rllc.C0 = rk1.C0 rllc.C1 = rk1.C1 rllc.Part0 = rul2 rllc.Part1 = rll2
- local rllcc = Instance.new("Part",t2) rllcc.Name = "yo" rllcc.Transparency = trans rllcc.Size = Vector3.new(rll2.Size.x/1.2,rll2.Size.y/3.5,rll2.Size.z/1.2)
- local rllcw = Instance.new("Weld",t2) rllcw.Name = "yo" rllcw.Part0 = rll2 rllcw.Part1 = rllcc rllcw.C0 = CFrame.new(0,-rll2.Size.y/7,0)
- end
- if lk1 ~= nil then
- local lllc = Instance.new("Glue",t2) lllc.Name = "yo" lllc.C0 = lk1.C0 lllc.C1 = lk1.C1 lllc.Part0 = lul2 lllc.Part1 = lll2
- local lllcc = Instance.new("Part",t2) lllcc.Name = "yo" lllcc.Transparency = trans lllcc.Size = Vector3.new(lll2.Size.x/1.2,lll2.Size.y/3.5,lll2.Size.z/1.2)
- local lllcw = Instance.new("Weld",t2) lllcw.Name = "yo" lllcw.Part0 = lll2 lllcw.Part1 = lllcc lllcw.C0 = CFrame.new(0,-lll2.Size.y/7,0)
- end
- if ra1 ~= nil then
- local rfc = Instance.new("Glue",t2) rfc.Name = "yo" rfc.C0 = ra1.C0 rfc.C1 = ra1.C1 rfc.Part0 = rll2 rfc.Part1 = rf2
- local rfcc = Instance.new("Part",t2) rfcc.Name = "yo" rfcc.Transparency = trans rfcc.Size = Vector3.new(rf2.Size.x/1,rf2.Size.y,rf2.Size.z/1)
- local rfcw = Instance.new("Weld",t2) rfcw.Name = "yo" rfcw.Part0 = rf2 rfcw.Part1 = rfcc
- end
- if la1 ~= nil then
- local lfc = Instance.new("Glue",t2) lfc.Name = "yo" lfc.C0 = la1.C0 lfc.C1 = la1.C1 lfc.Part0 = lll2 lfc.Part1 = lf2
- local lfcc = Instance.new("Part",t2) lfcc.Name = "yo" lfcc.Transparency = trans lfcc.Size = Vector3.new(lf2.Size.x/1,lf2.Size.y,lf2.Size.z/1)
- local lfcw = Instance.new("Weld",t2) lfcw.Name = "yo" lfcw.Part0 = lf2 lfcw.Part1 = lfcc
- end
- end
- ded:MakeJoints()
- hum1.Name = "aaa"
- ded.Archivable = true
- local dam = ded:Clone()
- dam.Parent = workspace
- dam.aaa.Health = .1 dam.aaa.MaxHealth = 100 dam.aaa.PlatformStand = true
- local dame = Instance.new("Glue",dam) dame.Name = "xddedxd"
- for i,v in pairs(ded:GetDescendants()) do
- if v:IsA("Part") or v:IsA("MeshPart") then
- v:Destroy()
- end
- end
- coroutine.resume(coroutine.create(function()
- wait(7)
- ded.Parent = nil
- end))
- end
- end
- function ragdoll1(who,megah)
- pcall(function()
- local ded = who
- local h1 = ded:FindFirstChild("Head")
- local t1 = ded:FindFirstChild("Torso") or ded:FindFirstChild("UpperTorso")
- local ff = ded:FindFirstChildOfClass("ForceField")
- if ff ~= nil then
- ff:Destroy()
- end
- if t1.Name == "UpperTorso" then
- r15r1(ded,megah)
- return ragdoll1
- end
- local ra1 = ded:FindFirstChild("Right Arm")
- local la1 = ded:FindFirstChild("Left Arm")
- local rl1 = ded:FindFirstChild("Right Leg")
- local ll1 = ded:FindFirstChild("Left Leg")
- local ff = Instance.new("ForceField",ded) ff.Visible = false
- local hum1 = ded:FindFirstChildOfClass("Humanoid")
- local acc = ded:FindFirstChild("xdded")
- if acc == nil then
- local ac = Instance.new("Glue",ded) ac.Name = "xddedxd"
- local rut1 = ded:FindFirstChild("HumanoidRootPart")
- hum1.PlatformStand = true
- if rut1 ~= nil then
- rut1.Parent = nil
- end
- pcall(function()
- for i,v in pairs(who:GetDescendants()) do
- if v:IsA("Script") or v:IsA("LocalScript") then
- if v.Name == "Health" then
- v.Parent = nil
- end
- end
- end
- for i,v in pairs(who:GetDescendants()) do
- if v:IsA("Part") then
- v.Anchored = false
- end
- if v:IsA("Accessory") or v:IsA("Hat") then
- v.Handle.Anchored = false
- end
- end
- end)
- for i,v in pairs(t1:GetDescendants()) do
- if v.Name == "yo" then
- v:Destroy()
- end
- end
- t1:BreakJoints()
- ra1:BreakJoints()
- la1:BreakJoints()
- rl1:BreakJoints()
- ll1:BreakJoints()
- --//Joints~//--
- --Neck--
- if h1 ~= nil then
- local neca = Instance.new("Glue",t1) neca.Part0 = t1 neca.Part1 = h1 neca.C0 = CFrame.new(0,t1.Size.y/2,0) neca.C1 = CFrame.new(0,-h1.Size.y/2,0) neca.Name = "yo"
- if megah == "hec" then
- neca:Destroy()
- local blyd = Instance.new("Part",h1) blyd.CanCollide = false blyd.BrickColor = BrickColor.new("Maroon") blyd.Size = Vector3.new(h1.Size.x/2.3,0.001,h1.Size.z/1.3) blyd.Material = "SmoothPlastic"
- local cyl = Instance.new("CylinderMesh",blyd)
- local blydw = Instance.new("Weld",blyd) blydw.Part0 = h1 blydw.Part1 = blyd blydw.C0 = CFrame.new(0,-h1.Size.y/2 -h1.Size.y/13,0)
- local blyd1 = Instance.new("Part",t1) blyd1.CanCollide = false blyd1.BrickColor = BrickColor.new("Maroon") blyd1.Size = Vector3.new(t1.Size.x/2.3,0.001,t1.Size.z/1.3) blyd1.Material = "SmoothPlastic"
- local cyl1 = Instance.new("CylinderMesh",blyd1)
- local blydw1 = Instance.new("Weld",blyd1) blydw1.Part0 = t1 blydw1.Part1 = blyd1 blydw1.C0 = CFrame.new(0,t1.Size.y/2,0)
- local att1 = Instance.new("Attachment",t1) att1.Name = "yo"
- local att2 = Instance.new("Attachment",h1) att2.Name = "yo"
- local rope = Instance.new("RopeConstraint",t1) rope.Name = "yo" rope.Length = 5000 rope.Attachment0 = att1 rope.Attachment1 = att2
- end
- local ch = Instance.new("Part",t1) ch.Name = "yo" ch.Size = Vector3.new(h1.Size.x/2,h1.Size.y/2,h1.Size.z/2 + h1.Size.z/4) ch.TopSurface = "Smooth" ch.BottomSurface = "Smooth" ch.Transparency = 1
- local wh = Instance.new("Weld",ch) wh.Part0 = h1 wh.Part1 = ch
- end
- --Right Arm--
- if ra1 ~= nil then
- local rsa = Instance.new("Glue",t1) rsa.Part0 = t1 rsa.Part1 = ra1 rsa.C0 = CFrame.new(t1.Size.x/2 + t1.Size.x/4,t1.Size.y/4,0) rsa.C1 = CFrame.new(0,ra1.Size.y/4,0)
- rsa.Name = "yo"
- local cra = Instance.new("Part",t1) cra.Name = "yo" cra.Size = Vector3.new(ra1.Size.y/2 + ra1.Size.y/4,ra1.Size.y/2,ra1.Size.z) cra.TopSurface = "Smooth" cra.BottomSurface = "Smooth" cra.Transparency = 1
- local wra = Instance.new("Weld",cra) wra.Part0 = ra1 wra.Part1 = cra wra.C0 = CFrame.new(0,-ra1.Size.y/8,0) * CFrame.Angles(rad(0),rad(0),rad(90))
- end
- --Left Arm--
- if la1 ~= nil then
- local lsa = Instance.new("Glue",t1) lsa.Part0 = t1 lsa.Part1 = la1 lsa.C0 = CFrame.new(-t1.Size.x/2 - t1.Size.x/4,t1.Size.y/4,0) lsa.C1 = CFrame.new(0,la1.Size.y/4,0) lsa.Name = "yo"
- local cla = Instance.new("Part",t1) cla.Name = "yo" cla.Size = Vector3.new(la1.Size.y/2 + la1.Size.y/4,la1.Size.y/2,la1.Size.z) cla.TopSurface = "Smooth" cla.BottomSurface = "Smooth" cla.Transparency = 1
- local wla = Instance.new("Weld",cla) wla.Part0 = la1 wla.Part1 = cla wla.C0 = CFrame.new(0,-la1.Size.y/8,0) * CFrame.Angles(rad(0),rad(0),rad(90))
- end
- --Right Leg--
- if rl1 ~= nil then
- local rha = Instance.new("Glue",t1) rha.Part0 = t1 rha.Part1 = rl1 rha.C0 = CFrame.new(t1.Size.x/4,-t1.Size.y/2,0) rha.C1 = CFrame.new(0,rl1.Size.y/2,0) rha.Name = "yo"
- if megah == "wai" then
- rha:Destroy()
- local blyd = Instance.new("Part",rl1) blyd.CanCollide = false blyd.BrickColor = BrickColor.new("Maroon") blyd.Size = Vector3.new(rl1.Size.x,0.001,rl1.Size.z) blyd.Material = "SmoothPlastic"
- local blydw = Instance.new("Weld",blyd) blydw.Part0 = rl1 blydw.Part1 = blyd blydw.C0 = CFrame.new(0,rl1.Size.y/2,0)
- end
- local crl = Instance.new("Part",t1) crl.Name = "yo" crl.Size = Vector3.new(rl1.Size.y/2 + rl1.Size.y/4,rl1.Size.y/2,rl1.Size.z) crl.TopSurface = "Smooth" crl.BottomSurface = "Smooth" crl.Transparency = 1
- local wrl = Instance.new("Weld",crl) wrl.Part0 = rl1 wrl.Part1 = crl wrl.C0 = CFrame.new(0,-rl1.Size.y/8,0) * CFrame.Angles(rad(0),rad(0),rad(90))
- end
- --Left Leg--
- if ll1 ~= nil then
- local lha = Instance.new("Glue",t1) lha.Part0 = t1 lha.Part1 = ll1 lha.C0 = CFrame.new(-t1.Size.x/4,-t1.Size.y/2,0) lha.C1 = CFrame.new(0,ll1.Size.y/2,0) lha.Name = "yo"
- if megah == "wai" then
- lha.Part0 = rl1 lha.Part1 = ll1 lha.C0 = CFrame.new(-rl1.Size.x/2,rl1.Size.y/2,0) lha.C1 = CFrame.new(ll1.Size.x/2,ll1.Size.y/2,0)
- local blyd = Instance.new("Part",ll1) blyd.CanCollide = false blyd.BrickColor = BrickColor.new("Maroon") blyd.Size = Vector3.new(ll1.Size.x,0.001,ll1.Size.z) blyd.Material = "SmoothPlastic"
- local blydw = Instance.new("Weld",blyd) blydw.Part0 = ll1 blydw.Part1 = blyd blydw.C0 = CFrame.new(0,ll1.Size.y/2,0)
- local blyd1 = Instance.new("Part",t1) blyd1.CanCollide = false blyd1.BrickColor = BrickColor.new("Maroon") blyd1.Size = Vector3.new(t1.Size.x,0.001,t1.Size.z) blyd1.Material = "SmoothPlastic"
- local blydw1 = Instance.new("Weld",blyd1) blydw1.Part0 = t1 blydw1.Part1 = blyd1 blydw1.C0 = CFrame.new(0,-t1.Size.y/2,0)
- local att1 = Instance.new("Attachment",t1) att1.Name = "yo"
- local att2 = Instance.new("Attachment",ll1) att2.Name = "yo"
- local rope = Instance.new("RopeConstraint",t1) rope.Name = "yo" rope.Length = 5000 rope.Attachment0 = att1 rope.Attachment1 = att2
- end
- local cll = Instance.new("Part",t1) cll.Name = "yo" cll.Size = Vector3.new(ll1.Size.y/2 + ll1.Size.y/4,ll1.Size.y/2,ll1.Size.z) cll.TopSurface = "Smooth" cll.BottomSurface = "Smooth" cll.Transparency = 1
- local wll = Instance.new("Weld",cll) wll.Part0 = ll1 wll.Part1 = cll wll.C0 = CFrame.new(0,-ll1.Size.y/8,0) * CFrame.Angles(rad(0),rad(0),rad(90))
- end
- ded.Archivable = true
- local eag = who:Clone()
- eag.Parent = workspace
- eag:FindFirstChildOfClass("Humanoid").PlatformStand = true
- eag:FindFirstChildOfClass("Humanoid").MaxHealth = 100
- eag:FindFirstChildOfClass("Humanoid").Health = .1
- for i,v in pairs(eag:GetDescendants()) do
- if v:IsA("Script") or v:IsA("LocalScript") then
- v:Destroy()
- end
- end
- for i,v in pairs(who:GetDescendants()) do
- if v.Name == "Head" then
- v:Destroy()
- end
- if v:IsA("Part") then
- v:Destroy()
- end
- if v:IsA("Accessory") or v:IsA("Hat") then
- v:Destroy()
- end
- end
- coroutine.resume(coroutine.create(function()
- wait(6)
- ded:Destroy()
- end))
- end
- end)
- end
- function bullet()
- local ray = Ray.new(shot.Position,(mouse.Hit.p - shot.Position).unit * 300)
- local part,pos = workspace:FindPartOnRay(ray,char,false,true)
- local dis = (shot.Position - pos).magnitude
- local bulet = Instance.new("Part",workspace)
- bulet.Size = Vector3.new(.15,.15,dis)
- bulet.BrickColor = BrickColor.new("Daisy orange")
- bulet.Material = "Neon" bulet.CanCollide = false bulet.Anchored = true
- bulet.CFrame = CFrame.new(shot.Position,mouse.Hit.p) * CFrame.new(0,0,-dis/2)
- coroutine.resume(coroutine.create(function()
- for i = 1,10 do
- bulet.Transparency = bulet.Transparency +.1
- swait()
- if bulet.Transparency >.999 then
- bulet:Destroy()
- end
- end
- end))
- local hit = part
- if hit ~= nil then
- local hole = Instance.new("Part",workspace) hole.Material = "SmoothPlastic" hole.CFrame = CFrame.new(pos) hole.Size = Vector3.new(.15,.15,.15) hole.BrickColor = BrickColor.Black()
- hole.CanCollide = false hole.Shape = "Ball"
- local holw = Instance.new("WeldConstraint",hole) holw.Part0 = hit holw.Part1 = hole
- local nub = hit.Parent:FindFirstChildOfClass("Humanoid") or hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
- if nub ~= nil and nub.Parent:FindFirstChild("xdded") == nil and nub.Parent:FindFirstChild("xddedxd") == nil then
- if hit.Parent ~= char then
- a = true
- hole.BrickColor = BrickColor.new("Maroon")
- nub.MaxHealth = 100
- nub.Health = nub.Health -math.random(11,23)
- nub.WalkSpeed = nub.WalkSpeed -1.2
- nub.JumpPower = nub.JumpPower -5
- nub.Died:Connect(function()
- ragdoll1(nub.Parent)
- end)
- if hit.Name == "Head"or hit.Parent.ClassName == "Accessory" or hit.Name == "Handle" then
- function expl(pos)
- local p = Instance.new("Part",workspace)
- p.Size = Vector3.new(.1,.1,.1) p.BrickColor = BrickColor.new("Maroon")
- p.Material = "Neon" p.Shape = "Ball" p.CanCollide = false p.Anchored = true
- p.CFrame = pos.CFrame
- coroutine.resume(coroutine.create(function()
- for i = 0,2,.1 do
- p.Size = p.Size:lerp(Vector3.new(2.5,2.5,2.5),i)
- p.Transparency = p.Transparency +.07
- swait()
- if p.Transparency >.99 then
- p:Destroy()
- end
- end
- end))
- end
- hole:Destroy()
- nub.Parent:BreakJoints()
- nub.Parent.Head:Destroy()
- sound(t,"131313234",1,1)
- expl(hit)
- local expls = Instance.new("Explosion",workspace) expls.BlastPressure = 500000 expls.BlastRadius = .8 expls.Position = hit.Position expls.Visible = false
- ragdoll1(nub.Parent,nil)
- end
- end
- end
- end
- end
- function mag()
- local mag = Instance.new("Part",workspace) mag.Size = Vector3.new(.35,1,.2) mag.BrickColor = BrickColor.new("Black") mag.Material = "Metal" mag.CFrame = Part1.CFrame * CFrame.new(0,-1,0)
- coroutine.resume(coroutine.create(function()
- wait(3)
- mag:Destroy()
- end))
- end
- function effect()
- local ef = Instance.new("Part",Model0) ef.Material = "Neon" ef.Name = "Effect" ef.Size = Vector3.new(.4,.4,.4) ef.Anchored = true ef.CanCollide = false ef.BrickColor = BrickColor.new("Daisy orange") ef.Transparency = 0 ef.CFrame = Part15.CFrame
- coroutine.resume(coroutine.create(function()
- for i = 1,10 do
- ef.Size = ef.Size +Vector3.new(.05,.05,.05)
- ef.Transparency = ef.Transparency +.1
- ef.CFrame = ef.CFrame * CFrame.Angles(rad(math.random(-180,180)),rad(math.random(-180,180)),rad(math.random(-180,180)))
- if ef.Transparency > .99 then
- ef:Destroy()
- end
- swait()
- end
- end))
- end
- local grabda = false
- local keyhold = false
- local lukin = false
- function fire()
- if not using and mode == "shoot" or using and grabda and mode == "grab" and killmode == "shoot1" then
- using = true
- rsw.Part1 = rapr
- lukin = true
- keyhold = true
- for i = 0,1,.07 do
- rsw.C0 = rsw.C0:lerp(CFrame.Angles(rad(90),rad(0),rad(53)),i)
- rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(233)),i)
- nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(127)),i)
- swait()
- end
- repeat
- if ammo >0 then
- fireto(mouse.Hit.p)
- sound(t,"131070686",1.5,1)
- ammo = ammo -1
- effect()
- bullet()
- for i = 0,1,.3 do
- rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,.3) * CFrame.Angles(rad(90),rad(0),rad(53)) * CFrame.Angles(rad(40),rad(0),rad(0)),i)
- swait()
- end
- for i = 0,1,.2 do
- rsw.C0 = rsw.C0:lerp(CFrame.Angles(rad(90),rad(0),rad(53)),i)
- swait()
- end
- wait(.35)
- else
- sound(t,"537744814",5,1)
- keyhold = false
- swait()
- end
- until keyhold == false
- wait(.2)
- lukin = false
- for i = 0,1,.07 do
- rsw.C0 = rsw.C0:lerp(CFrame.Angles(rad(0),rad(0),rad(0)),i)
- rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(180)),i)
- nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
- swait()
- end
- rsw.Part1 = nil
- if killmode ~= "shoot1" then
- using = false
- end
- end
- end
- function keyup()
- keyhold = false
- end
- mouse.Button1Down:connect(fire)
- mouse.Button1Up:connect(keyup)
- function reload()
- if ammo >6 then
- else
- using = true
- rsw.Part1 = rapr lsw.Part1 = lapl
- sound(t,"198915489",1,1.3)
- info("Reloading...",2.2)
- for i = 0,1,.05 do
- rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(80),rad(-45),rad(-40)),i)
- lsw.C0 = lsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(60),rad(0),rad(50)),i)
- nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
- swait()
- end
- mag()
- for i = 0,1,.1 do
- rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(60),rad(-45),rad(-40)),i)
- lsw.C0 = lsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-10),rad(0),rad(0)),i)
- nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
- swait()
- end
- for i = 0,1,.05 do
- rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(60),rad(-45),rad(-40)),i)
- lsw.C0 = lsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(-10),rad(0),rad(50)),i)
- nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
- swait()
- end
- local mag = Instance.new("Part",workspace) mag.Size = Vector3.new(.35,1,.2) mag.BrickColor = BrickColor.new("Black") mag.CanCollide = false mag.Material = "Metal"
- local magw = Instance.new("Weld",mag) magw.Part0 = la magw.Part1 = mag magw.C0 = CFrame.new(.3,-1,.1) * CFrame.Angles(rad(90),rad(-40),rad(-90))
- for i = 0,1,.05 do
- rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(80),rad(-45),rad(-40)),i)
- lsw.C0 = lsw.C0:lerp(CFrame.new(.4,0,0) * CFrame.Angles(rad(50),rad(45),rad(50)),i)
- nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
- swait()
- end
- mag:Destroy()
- for i = 0,1,.05 do
- rsw.C0 = rsw.C0:lerp(CFrame.new(-.5,-.7,0) * CFrame.Angles(rad(110),rad(0),rad(-47)),i)
- lsw.C0 = lsw.C0:lerp(CFrame.new(.3,-.5,0) * CFrame.Angles(rad(160),rad(-77),rad(40)),i)
- nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
- swait()
- end
- for i = 0,1,.05 do
- rsw.C0 = rsw.C0:lerp(CFrame.new(-.5,-.7,0) * CFrame.Angles(rad(110),rad(0),rad(-47)),i)
- lsw.C0 = lsw.C0:lerp(CFrame.new(.5,-.5,.3) * CFrame.Angles(rad(150),rad(-50),rad(40)),i)
- nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
- swait()
- end
- for i = 0,1,.05 do
- rsw.C0 = rsw.C0:lerp(CFrame.new(-.5,-.7,0) * CFrame.Angles(rad(110),rad(0),rad(-47)),i)
- lsw.C0 = lsw.C0:lerp(CFrame.new(.3,-.5,0) * CFrame.Angles(rad(160),rad(-77),rad(40)),i)
- nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
- swait()
- end
- for i = 0,.6,.05 do
- rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(0),rad(0),rad(0)),i)
- lsw.C0 = lsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(0),rad(0),rad(0)),i)
- nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
- swait()
- end
- ammo = 7
- rsw.Part1 = nil lsw.Part1 = nil
- using = false
- end
- end
- function dumi()
- local dog = Instance.new("Model",workspace) dog.Name = "dumi"
- local head = Instance.new("Part",dog) head.Name = "Head" head.Size = Vector3.new(2,1,1)
- local la1 = Instance.new("Part",dog) la1.Name = "Left Arm" la1.Size = Vector3.new(1,2,1) local t1 = Instance.new("Part",dog) t1.Name = "Torso" t1.Size = Vector3.new(2,2,1) local ra1 = Instance.new("Part",dog) ra1.Name = "Right Arm" ra1.Size = Vector3.new(1,2,1)
- local ll1 = Instance.new("Part",dog) ll1.Name = "Left Leg" ll1.Size = Vector3.new(1,2,1) local rl1 = Instance.new("Part",dog) rl1.Name = "Right Leg" rl1.Size = Vector3.new(1,2,1)
- local dhum = Instance.new("Humanoid",dog) local hmesh = Instance.new("SpecialMesh",head) hmesh.Scale = Vector3.new(1.25,1.25,1.25)
- dhum.MaxHealth = "inf" dhum.Health = "inf" dhum.AutoJumpEnabled = true
- head.BrickColor = BrickColor.new("Institutional white") t1.BrickColor = BrickColor.new("Really black") ra1.BrickColor = BrickColor.new("Institutional white") la1.BrickColor = BrickColor.new("Institutional white") rl1.BrickColor = BrickColor.new("Dark stone grey") ll1.BrickColor = BrickColor.new("Dark stone grey")
- local fais = Instance.new("Decal",head) fais.Texture = "http://www.roblox.com/asset/?id=1077397727"
- local nec = Instance.new("Motor6D",t1) nec.Part0 = t1 nec.Part1 = head nec.C0 = nec.C0 * CFrame.new(0,1.5,0)
- local ris = Instance.new("Motor6D",t1) ris.Part0 = t1 ris.Part1 = ra1 ris.C0 = ris.C0 * CFrame.new(1.5,0,0)
- local lis = Instance.new("Motor6D",t1) lis.Part0 = t1 lis.Part1 = la1 lis.C0 = lis.C0 * CFrame.new(-1.5,0,0)
- local rih = Instance.new("Motor6D",t1) rih.Part0 = t1 rih.Part1 = rl1 rih.C0 = rih.C0 * CFrame.new(.5,-2,0)
- local lih = Instance.new("Motor6D",t1) lih.Part0 = t1 lih.Part1 = ll1 lih.C0 = lih.C0 * CFrame.new(-.5,-2,0)
- head.CFrame = h.CFrame * CFrame.new(4,0,0)
- t1.CFrame = t.CFrame * CFrame.new(4,0,0)
- ra1.CFrame = ra.CFrame * CFrame.new(4,0,0)
- la1.CFrame = la.CFrame * CFrame.new(4,0,0)
- rl1.CFrame = rl.CFrame * CFrame.new(4,0,0)
- ll1.CFrame = ll.CFrame * CFrame.new(4,0,0)
- end
- mouse.KeyDown:connect(function(key)
- if key == "z"and canequip then
- rsw.Part1 = rapr
- using = true
- info("Equipped, press F or G to change the mode.",1)
- for i = 0,1,.03 do
- rsw.C0 = rsw.C0:lerp(CFrame.new(0,.3,0) * CFrame.Angles(rad(0),rad(0),rad(-20)),i)
- swait()
- end
- gunweld.Part0 = ra gunweld.C0 = CFrame.new(0,-.9,0) * CFrame.Angles(rad(-90),rad(-90),rad(0))
- for i = 0,1,.05 do
- rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(0),rad(0),rad(0)),i)
- swait()
- end
- uneq = true
- rsw.Part1 = nil
- canequip = false
- using = false
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == "x" and not canequip and uneq then
- rsw.Part1 = rapr
- using = true
- info("Unequipped.",1)
- for i = 0,1,.05 do
- rsw.C0 = rsw.C0:lerp(CFrame.new(0,.3,0) * CFrame.Angles(rad(0),rad(0),rad(-20)),i)
- swait()
- end
- gunweld.Part0 = t gunweld.C0 = CFrame.new(1.1,-.7,0) * CFrame.Angles(rad(-120),rad(-90),rad(0))
- for i = 0,.5,.1 do
- rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(180)),i)
- rs.C0 = rs.C0:lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(0)),i)
- ls.C0 = ls.C0:lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),i)
- rh.C0 = rh.C0:lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)),i)
- lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),i)
- nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
- swait()
- end
- for i = 0,1,.03 do
- rsw.C0 = rsw.C0:lerp(CFrame.new(0,0,0) * CFrame.Angles(rad(0),rad(0),rad(0)),i)
- swait()
- end
- uneq = false
- canequip = true
- rsw.Part1 = nil
- end
- end)
- mouse.KeyDown:connect(function(key)
- key = string.lower(key)
- if string.byte(key) == 48 and not grabda then
- hum.WalkSpeed = 30
- end
- end)
- mouse.KeyUp:connect(function(key)
- key = string.lower(key)
- if string.byte(key) == 48 and not grabda then
- hum.WalkSpeed = 16
- end
- end)
- local conts = false
- function controls()
- conts = true
- coroutine.resume(coroutine.create(function()
- info("Click - Shoot.",1)
- wait(1)
- info("R - Reload.",1)
- wait(1)
- info("F - Change the mode to Grab.",1)
- wait(1)
- info("G - Change the mode to Shoot.",1)
- wait(1)
- info("C - Spawn a dummy.",1)
- wait(1)
- info("N - Dance(Take the L).",1)
- conts = false
- end))
- end
- hum.Running:connect(function(spd)
- if spd > 0 then
- anim = "walk"
- else
- anim = "idle"
- end
- end)
- function sog()
- if mode == "grab" and not using and not grab then
- greb()
- end
- end
- mouse.Button1Down:connect(sog)
- mouse.KeyDown:connect(function(key)
- if key == "e" and grab and using then
- kill()
- end
- if key == "q" and grab and using then
- drop()
- elseif grabda and key == "q" then
- drop1()
- end
- if grabda and key == "e" then
- fire()
- end
- if key == "r" and not using and not grab then
- reload()
- end
- if key == "c" then
- dumi()
- end
- if key == "m" and not conts then
- controls()
- end
- end)
- local dancing = false
- local mus = Instance.new("Sound",t) mus.Looped = true mus.SoundId = "rbxassetid://1563991094" mus.Volume = 2
- mouse.KeyDown:connect(function(key)
- key = key:lower()
- if key == "n" then
- if not dancing then
- dancing = true
- using = true
- char.Animate.Disabled = true
- for i,v in pairs(Model0:GetChildren()) do
- if v:IsA("Part") then
- v.Transparency = 1
- end
- end
- mus:Play()
- while dancing do
- if dancing then
- coroutine.resume(coroutine.create(function()
- for i = 0,.3,.035 do
- rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(5),rad(180)) * CFrame.new(0,0,-.1),i)
- rs.C0 = rs.C0:lerp(CFrame.new(.3,.7,-1.3) * CFrame.Angles(rad(0),rad(114),rad(190)) * CFrame.Angles(rad(43),rad(0),rad(0)),i)
- ls.C0 = ls.C0:lerp(CFrame.new(-1.3,.5,-.3) * CFrame.Angles(rad(0),rad(-166),rad(-40)) * CFrame.Angles(rad(23),rad(0),rad(0)),i)
- rh.C0 = rh.C0:lerp(CFrame.new(1,-.9,-.05) * CFrame.Angles(rad(0),rad(60),rad(-10)),i)
- lh.C0 = lh.C0:lerp(CFrame.new(-1,-.8,-.15) * CFrame.Angles(rad(0),rad(-45),rad(-31.5)),i)
- nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
- swait()
- end
- end))
- end
- wait(.07)
- if dancing then
- for i = 0,.7,.035 do
- rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(5),rad(180)) * CFrame.new(0,0,-.2),i)
- rs.C0 = rs.C0:lerp(CFrame.new(.3,.7,-1.3) * CFrame.Angles(rad(0),rad(114),rad(190)) * CFrame.Angles(rad(43),rad(0),rad(0)),i)
- ls.C0 = ls.C0:lerp(CFrame.new(-1.3,.5,-.3) * CFrame.Angles(rad(0),rad(-166),rad(-40)) * CFrame.Angles(rad(23),rad(0),rad(0)),i)
- rh.C0 = rh.C0:lerp(CFrame.new(1,-.8,-.05) * CFrame.Angles(rad(0),rad(60),rad(-20)),i)
- lh.C0 = lh.C0:lerp(CFrame.new(-1,-.8,-.15) * CFrame.Angles(rad(0),rad(-45),rad(-63)),i)
- nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
- swait()
- end
- end
- if dancing then
- coroutine.resume(coroutine.create(function()
- for i = 0,.3,.035 do
- rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(-5),rad(180)) * CFrame.new(0,0,-.1),i)
- rs.C0 = rs.C0:lerp(CFrame.new(.3,.7,-1.3) * CFrame.Angles(rad(0),rad(114),rad(190)) * CFrame.Angles(rad(43),rad(0),rad(0)),i)
- ls.C0 = ls.C0:lerp(CFrame.new(-1.3,.5,-.3) * CFrame.Angles(rad(0),rad(-166),rad(-40)) * CFrame.Angles(rad(23),rad(0),rad(0)),i)
- rh.C0 = rh.C0:lerp(CFrame.new(1,-.8,-.15) * CFrame.Angles(rad(0),rad(45),rad(31.5)),i)
- lh.C0 = lh.C0:lerp(CFrame.new(-1,-.9,-.05) * CFrame.Angles(rad(0),rad(-60),rad(20)),i)
- nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
- swait()
- end
- end))
- end
- wait(.07)
- if dancing then
- for i = 0,.7,.035 do
- rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(-5),rad(180)) * CFrame.new(0,0,-.2),i)
- rs.C0 = rs.C0:lerp(CFrame.new(.3,.7,-1.3) * CFrame.Angles(rad(0),rad(114),rad(190)) * CFrame.Angles(rad(43),rad(0),rad(0)),i)
- ls.C0 = ls.C0:lerp(CFrame.new(-1.3,.5,-.3) * CFrame.Angles(rad(0),rad(-166),rad(-40)) * CFrame.Angles(rad(23),rad(0),rad(0)),i)
- rh.C0 = rh.C0:lerp(CFrame.new(1,-.8,-.15) * CFrame.Angles(rad(0),rad(45),rad(63)),i)
- lh.C0 = lh.C0:lerp(CFrame.new(-1,-.8,-.05) * CFrame.Angles(rad(0),rad(-60),rad(20)),i)
- nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
- swait()
- end
- end
- swait()
- end
- else
- mus:Stop()
- char.Animate.Disabled = false
- dancing = false
- for i,v in pairs(Model0:GetChildren()) do
- if v:IsA("Part") then
- v.Transparency = 0
- end
- end
- shot.Transparency = 1
- if not canequip then
- using = false
- else
- for i,v in pairs(Model0:GetChildren()) do
- if v:IsA("Part") then
- v.Transparency = 0
- end
- end
- shot.Transparency = 1
- using = true
- wait(.3)
- for i = 0,1,.1 do
- rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(180)),i)
- rs.C0 = rs.C0:lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(0)),i)
- ls.C0 = ls.C0:lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),i)
- rh.C0 = rh.C0:lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)),i)
- lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),i)
- nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
- swait()
- end
- end
- end
- end
- end)
- while true do
- if anim == "walk" and not using and uneq then
- for i = 0,.5,.1 do
- rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(180)),i)
- rs.C0 = rs.C0:lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(90),rad(0)),i)
- ls.C0 = ls.C0:lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),i)
- rh.C0 = rh.C0:lerp(CFrame.new(1,-1,0) * CFrame.Angles(rad(0),rad(90),rad(0)),i)
- lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(0),rad(-90),rad(0)),i)
- nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(180)),i)
- swait()
- end
- end
- if anim == "idle" and not using and uneq then
- for i = 0,.5,.06 do
- rutj.C0 = rutj.C0:lerp(CFrame.Angles(rad(-90),rad(0),rad(160)),i)
- rs.C0 = rs.C0:lerp(CFrame.new(1,.5,0) * CFrame.Angles(rad(0),rad(74),rad(-20)),i)
- ls.C0 = ls.C0:lerp(CFrame.new(-1,.5,0) * CFrame.Angles(rad(0),rad(-110),rad(-20)),i)
- rh.C0 = rh.C0:lerp(CFrame.new(1,-1.1,0) * CFrame.Angles(rad(7),rad(80),rad(0)),i)
- lh.C0 = lh.C0:lerp(CFrame.new(-1,-1,0) * CFrame.Angles(rad(-7),rad(-80),rad(0)),i)
- nec.C0 = nec.C0:lerp(CFrame.new(0,1,0) * CFrame.Angles(rad(-90),rad(0),rad(200)),i)
- swait()
- end
- end
- swait()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement