SHOW:
|
|
- or go back to the newest paste.
| 1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
| 2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 3 | local Player,game,owner = owner,game | |
| 4 | local RealPlayer = Player | |
| 5 | do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
| |
| 6 | A = true | |
| 7 | if A == true then | |
| 8 | Model = Instance.new("Model")
| |
| 9 | Model.Name = "Weapon" | |
| 10 | p = Instance.new("Part", Model)
| |
| 11 | p.Name = "Part" | |
| 12 | p.TopSurface = 0 | |
| 13 | p.BottomSurface = 0 | |
| 14 | p.formFactor = "Custom" | |
| 15 | p.Size = Vector3.new(10, 12, 10) | |
| 16 | p.CFrame = CFrame.new(35.4000015, 7.0999999, 63, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
| 17 | p.BrickColor = BrickColor.new("Medium stone grey")
| |
| 18 | p.Transparency = 0 | |
| 19 | p.Reflectance = .1 | |
| 20 | p.Material = Enum.Material.Concrete | |
| 21 | m = Instance.new("CylinderMesh")
| |
| 22 | m.Scale = Vector3.new(1, 1.02999997, 1) | |
| 23 | m.Parent = p | |
| 24 | p = Instance.new("Part", Model)
| |
| 25 | p.Name = "Part" | |
| 26 | p.TopSurface = 0 | |
| 27 | p.BottomSurface = 0 | |
| 28 | p.formFactor = "Custom" | |
| 29 | p.Size = Vector3.new(2, 12.8, 2) | |
| 30 | p.CFrame = CFrame.new(35.4000015, 7.19999981, 63, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
| 31 | p.BrickColor = BrickColor.new("Bright yellow")
| |
| 32 | p.Transparency = 0 | |
| 33 | p.Reflectance = .1 | |
| 34 | p.Material = Enum.Material.Plastic | |
| 35 | m = Instance.new("CylinderMesh")
| |
| 36 | m.Scale = Vector3.new(1, 1, 1) | |
| 37 | m.Parent = p | |
| 38 | p = Instance.new("Part", Model)
| |
| 39 | p.Name = "Part" | |
| 40 | p.TopSurface = 0 | |
| 41 | p.BottomSurface = 0 | |
| 42 | p.formFactor = "Custom" | |
| 43 | p.Size = Vector3.new(1.79, 5, 1) | |
| 44 | p.CFrame = CFrame.new(29.7000179, 8.89999485, 63.3000221, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
| 45 | p.BrickColor = BrickColor.new("Bright yellow")
| |
| 46 | p.Transparency = 0 | |
| 47 | p.Reflectance = .1 | |
| 48 | p.Material = Enum.Material.Plastic | |
| 49 | p = Instance.new("Part", Model)
| |
| 50 | p.Name = "Part" | |
| 51 | p.TopSurface = 0 | |
| 52 | p.BottomSurface = 0 | |
| 53 | p.formFactor = "Custom" | |
| 54 | p.Size = Vector3.new(5, 1.40, 0.99) | |
| 55 | p.CFrame = CFrame.new(29.7000198, 10.4999943, 63.3000031, -1.49008788e-008, -2.3933373e-007, 0.999990225, 6.6675625e-009, 0.99999392, 2.39334668e-007, -0.999994516, 6.66761935e-009, 7.45059765e-008) | |
| 56 | p.BrickColor = BrickColor.new("Bright yellow")
| |
| 57 | p.Transparency = 0 | |
| 58 | p.Reflectance = .1 | |
| 59 | p.Material = Enum.Material.Plastic | |
| 60 | m = Instance.new("SpecialMesh")
| |
| 61 | m.Scale = Vector3.new(1, 1, 1) | |
| 62 | m.Parent = p | |
| 63 | m.MeshType = Enum.MeshType.Wedge | |
| 64 | p = Instance.new("Part", Model)
| |
| 65 | p.Name = "Center" | |
| 66 | p.TopSurface = 0 | |
| 67 | p.BottomSurface = 0 | |
| 68 | p.formFactor = "Custom" | |
| 69 | p.Size = Vector3.new(12.5, 5.80, 27.6) | |
| 70 | p.CFrame = CFrame.new(43.0000076, 9.30000114, 62.8999977, 1.06581131e-014, -8.74229471e-008, 1, -7.10542736e-015, 1, 8.742294e-008, -1, -7.10542736e-015, -4.37113776e-008) | |
| 71 | p.BrickColor = BrickColor.new("Bright yellow")
| |
| 72 | p.Transparency = 1 | |
| 73 | p.Reflectance = .1 | |
| 74 | p.Material = Enum.Material.Plastic | |
| 75 | p = Instance.new("Part", Model)
| |
| 76 | p.Name = "Part" | |
| 77 | p.TopSurface = 0 | |
| 78 | p.BottomSurface = 0 | |
| 79 | p.formFactor = "Custom" | |
| 80 | p.Size = Vector3.new(6.80, 1, 6.00) | |
| 81 | p.CFrame = CFrame.new(51.9999924, 9.06999207, 68.6000443, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
| 82 | p.BrickColor = BrickColor.new("Bright yellow")
| |
| 83 | p.Transparency = 0 | |
| 84 | p.Reflectance = .1 | |
| 85 | p.Material = Enum.Material.Plastic | |
| 86 | p = Instance.new("Part", Model)
| |
| 87 | p.Name = "Part" | |
| 88 | p.TopSurface = 0 | |
| 89 | p.BottomSurface = 0 | |
| 90 | p.formFactor = "Custom" | |
| 91 | p.Size = Vector3.new(11, 5.40, 2.79) | |
| 92 | p.CFrame = CFrame.new(56.5999718, 9.76999664, 63.0000076, 1.49011612e-008, 5.89458523e-007, -0.999990225, -3.49571337e-007, 0.99999392, 5.89460512e-007, 0.999994278, 3.49571422e-007, -4.47034836e-008) | |
| 93 | p.BrickColor = BrickColor.new("Bright yellow")
| |
| 94 | p.Transparency = 0 | |
| 95 | p.Reflectance = .1 | |
| 96 | p.Material = Enum.Material.Plastic | |
| 97 | m = Instance.new("SpecialMesh")
| |
| 98 | m.Scale = Vector3.new(1, 1, 1) | |
| 99 | m.Parent = p | |
| 100 | m.MeshType = Enum.MeshType.Wedge | |
| 101 | p = Instance.new("Part", Model)
| |
| 102 | p.Name = "Part" | |
| 103 | p.TopSurface = 0 | |
| 104 | p.BottomSurface = 0 | |
| 105 | p.formFactor = "Custom" | |
| 106 | p.Size = Vector3.new(2.60, 11, 1.99) | |
| 107 | p.CFrame = CFrame.new(39.4000015, 10.7699995, 63, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
| 108 | p.BrickColor = BrickColor.new("Bright yellow")
| |
| 109 | p.Transparency = 0 | |
| 110 | p.Reflectance = .1 | |
| 111 | p.Material = Enum.Material.Plastic | |
| 112 | p = Instance.new("Part", Model)
| |
| 113 | p.Name = "Part" | |
| 114 | p.TopSurface = 0 | |
| 115 | p.BottomSurface = 0 | |
| 116 | p.formFactor = "Custom" | |
| 117 | p.Size = Vector3.new(3.20, 11.0, 5) | |
| 118 | p.CFrame = CFrame.new(35.9000092, 11.0999928, 63.0000153, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
| 119 | p.BrickColor = BrickColor.new("Bright yellow")
| |
| 120 | p.Transparency = 0 | |
| 121 | p.Reflectance = .1 | |
| 122 | p.Material = Enum.Material.Plastic | |
| 123 | p = Instance.new("Part", Model)
| |
| 124 | p.Name = "Part" | |
| 125 | p.TopSurface = 0 | |
| 126 | p.BottomSurface = 0 | |
| 127 | p.formFactor = "Custom" | |
| 128 | p.Size = Vector3.new(1.99, 1, 1) | |
| 129 | p.CFrame = CFrame.new(51.8999863, 16.6699886, 58.4000015, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
| 130 | p.BrickColor = BrickColor.new("Mid gray")
| |
| 131 | p.Transparency = 0 | |
| 132 | p.Reflectance = .1 | |
| 133 | p.Material = Enum.Material.Plastic | |
| 134 | p = Instance.new("Part", Model)
| |
| 135 | p.Name = "Part" | |
| 136 | p.TopSurface = 0 | |
| 137 | p.BottomSurface = 0 | |
| 138 | p.formFactor = "Custom" | |
| 139 | p.Size = Vector3.new(1, 1, 4.59) | |
| 140 | p.CFrame = CFrame.new(49.099987, 18.1699905, 58.4000015, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
| 141 | p.BrickColor = BrickColor.new("Mid gray")
| |
| 142 | p.Transparency = 0 | |
| 143 | p.Reflectance = .1 | |
| 144 | p.Material = Enum.Material.Plastic | |
| 145 | p = Instance.new("Part", Model)
| |
| 146 | p.Name = "Part" | |
| 147 | p.TopSurface = 0 | |
| 148 | p.BottomSurface = 0 | |
| 149 | p.formFactor = "Custom" | |
| 150 | p.Size = Vector3.new(1, 12.6, 9.80) | |
| 151 | p.CFrame = CFrame.new(40.2999878, 6.77000237, 63.0000038, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
| 152 | p.BrickColor = BrickColor.new("Bright yellow")
| |
| 153 | p.Transparency = 0 | |
| 154 | p.Reflectance = .1 | |
| 155 | p.Material = Enum.Material.Plastic | |
| 156 | p = Instance.new("Part", Model)
| |
| 157 | p.Name = "Part" | |
| 158 | p.TopSurface = 0 | |
| 159 | p.BottomSurface = 0 | |
| 160 | p.formFactor = "Custom" | |
| 161 | p.Size = Vector3.new(5.19, 1.39, 2.39) | |
| 162 | p.CFrame = CFrame.new(32.2000008, 12.5999899, 63.2999992, -1.49008788e-008, -2.3933373e-007, 0.999990225, 6.6675625e-009, 0.99999392, 2.39334668e-007, -0.999994516, 6.66761935e-009, 7.45059765e-008) | |
| 163 | p.BrickColor = BrickColor.new("Bright yellow")
| |
| 164 | p.Transparency = 0 | |
| 165 | p.Reflectance = .1 | |
| 166 | p.Material = Enum.Material.Plastic | |
| 167 | m = Instance.new("SpecialMesh")
| |
| 168 | m.Scale = Vector3.new(1, 1, 1) | |
| 169 | m.Parent = p | |
| 170 | m.MeshType = Enum.MeshType.Wedge | |
| 171 | p = Instance.new("Part", Model)
| |
| 172 | p.Name = "Part" | |
| 173 | p.TopSurface = 0 | |
| 174 | p.BottomSurface = 0 | |
| 175 | p.formFactor = "Custom" | |
| 176 | p.Size = Vector3.new(11, 0.60, 1.99) | |
| 177 | p.CFrame = CFrame.new(39.3999825, 12.3699951, 63.0000267, 1.49008779e-008, 2.39330944e-007, -0.999990225, 6.66761935e-009, 0.99999392, 2.39331769e-007, 0.999994516, -6.66753408e-009, -7.45059765e-008) | |
| 178 | p.BrickColor = BrickColor.new("Bright yellow")
| |
| 179 | p.Transparency = 0 | |
| 180 | p.Reflectance = .1 | |
| 181 | p.Material = Enum.Material.Plastic | |
| 182 | m = Instance.new("SpecialMesh")
| |
| 183 | m.Scale = Vector3.new(1, 1, 1) | |
| 184 | m.Parent = p | |
| 185 | m.MeshType = Enum.MeshType.Wedge | |
| 186 | p = Instance.new("Part", Model)
| |
| 187 | p.Name = "Part" | |
| 188 | p.TopSurface = 0 | |
| 189 | p.BottomSurface = 0 | |
| 190 | p.formFactor = "Custom" | |
| 191 | p.Size = Vector3.new(3.20, 11, 5.60) | |
| 192 | p.CFrame = CFrame.new(50.1999855, 14.0699921, 63, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
| 193 | p.BrickColor = BrickColor.new("Bright yellow")
| |
| 194 | p.Transparency = 0 | |
| 195 | p.Reflectance = .1 | |
| 196 | p.Material = Enum.Material.Plastic | |
| 197 | p = Instance.new("Part", Model)
| |
| 198 | p.Name = "Part" | |
| 199 | p.TopSurface = 0 | |
| 200 | p.BottomSurface = 0 | |
| 201 | p.formFactor = "Custom" | |
| 202 | p.Size = Vector3.new(5, 13, 3.79) | |
| 203 | p.CFrame = CFrame.new(43.2999916, 9.56999779, 63, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
| 204 | p.BrickColor = BrickColor.new("Bright yellow")
| |
| 205 | p.Transparency = 0 | |
| 206 | p.Reflectance = .1 | |
| 207 | p.Material = Enum.Material.Plastic | |
| 208 | p = Instance.new("Part", Model)
| |
| 209 | p.Name = "Part" | |
| 210 | p.TopSurface = 0 | |
| 211 | p.BottomSurface = 0 | |
| 212 | p.formFactor = "Custom" | |
| 213 | p.Size = Vector3.new(5.19, 1.39, 2.39) | |
| 214 | p.CFrame = CFrame.new(39.6000061, 12.599987, 63.2999992, 1.49011612e-008, 5.89458523e-007, -0.999990225, -3.49571337e-007, 0.99999392, 5.89460512e-007, 0.999994278, 3.49571422e-007, -4.47034836e-008) | |
| 215 | p.BrickColor = BrickColor.new("Bright yellow")
| |
| 216 | p.Transparency = 0 | |
| 217 | p.Reflectance = .1 | |
| 218 | p.Material = Enum.Material.Plastic | |
| 219 | m = Instance.new("SpecialMesh")
| |
| 220 | m.Scale = Vector3.new(1, 1, 1) | |
| 221 | m.Parent = p | |
| 222 | m.MeshType = Enum.MeshType.Wedge | |
| 223 | p = Instance.new("Part", Model)
| |
| 224 | p.Name = "Part" | |
| 225 | p.TopSurface = 0 | |
| 226 | p.BottomSurface = 0 | |
| 227 | p.formFactor = "Custom" | |
| 228 | p.Size = Vector3.new(5.19, 1, 1) | |
| 229 | p.CFrame = CFrame.new(46.2999878, 15.069993, 67.5999985, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
| 230 | p.BrickColor = BrickColor.new("Mid gray")
| |
| 231 | p.Transparency = 0 | |
| 232 | p.Reflectance = .1 | |
| 233 | p.Material = Enum.Material.Plastic | |
| 234 | p = Instance.new("Part", Model)
| |
| 235 | p.Name = "Part" | |
| 236 | p.TopSurface = 0 | |
| 237 | p.BottomSurface = 0 | |
| 238 | p.formFactor = "Custom" | |
| 239 | p.Size = Vector3.new(3.20, 5, 4) | |
| 240 | p.CFrame = CFrame.new(32.200016, 9.59999657, 63.3000221, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
| 241 | p.BrickColor = BrickColor.new("Bright yellow")
| |
| 242 | p.Transparency = 0 | |
| 243 | p.Reflectance = .1 | |
| 244 | p.Material = Enum.Material.Plastic | |
| 245 | p = Instance.new("Part", Model)
| |
| 246 | p.Name = "Part" | |
| 247 | p.TopSurface = 0 | |
| 248 | p.BottomSurface = 0 | |
| 249 | p.formFactor = "Custom" | |
| 250 | p.Size = Vector3.new(6, 6.79, 2.79) | |
| 251 | p.CFrame = CFrame.new(51.9999924, 9.06999302, 70.5000458, -1, 0, -4.37113883e-008, 0, 1, 0, 4.37113883e-008, 0, -1) | |
| 252 | p.BrickColor = BrickColor.new("Bright yellow")
| |
| 253 | p.Transparency = 0 | |
| 254 | p.Reflectance = .1 | |
| 255 | p.Material = Enum.Material.Plastic | |
| 256 | m = Instance.new("SpecialMesh")
| |
| 257 | m.Scale = Vector3.new(1, 1, 1) | |
| 258 | m.Parent = p | |
| 259 | m.MeshType = Enum.MeshType.Wedge | |
| 260 | p = Instance.new("Part", Model)
| |
| 261 | p.Name = "Part" | |
| 262 | p.TopSurface = 0 | |
| 263 | p.BottomSurface = 0 | |
| 264 | p.formFactor = "Custom" | |
| 265 | p.Size = Vector3.new(0.60, 7.40, 3.79) | |
| 266 | p.CFrame = CFrame.new(43.2999916, 12.3699942, 63.2000008, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
| 267 | p.BrickColor = BrickColor.new("Black")
| |
| 268 | p.Transparency = 0 | |
| 269 | p.Reflectance = .1 | |
| 270 | p.Material = Enum.Material.Plastic | |
| 271 | p = Instance.new("Part", Model)
| |
| 272 | p.Name = "Part" | |
| 273 | p.TopSurface = 0 | |
| 274 | p.BottomSurface = 0 | |
| 275 | p.formFactor = "Custom" | |
| 276 | p.Size = Vector3.new(6.80, 1, 6.00) | |
| 277 | p.CFrame = CFrame.new(51.9999924, 9.06999588, 57.3999977, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
| 278 | p.BrickColor = BrickColor.new("Bright yellow")
| |
| 279 | p.Transparency = 0 | |
| 280 | p.Reflectance = .1 | |
| 281 | p.Material = Enum.Material.Plastic | |
| 282 | p = Instance.new("Part", Model)
| |
| 283 | p.Name = "Part" | |
| 284 | p.TopSurface = 0 | |
| 285 | p.BottomSurface = 0 | |
| 286 | p.formFactor = "Custom" | |
| 287 | p.Size = Vector3.new(11, 3.20, 2.19) | |
| 288 | p.CFrame = CFrame.new(54.0999756, 14.0699921, 63.0000076, 1.49011612e-008, 5.89458523e-007, -0.999990225, -3.49571337e-007, 0.99999392, 5.89460512e-007, 0.999994278, 3.49571422e-007, -4.47034836e-008) | |
| 289 | p.BrickColor = BrickColor.new("Bright yellow")
| |
| 290 | p.Transparency = 0 | |
| 291 | p.Reflectance = .1 | |
| 292 | p.Material = Enum.Material.Plastic | |
| 293 | m = Instance.new("SpecialMesh")
| |
| 294 | m.Scale = Vector3.new(1, 1, 1) | |
| 295 | m.Parent = p | |
| 296 | m.MeshType = Enum.MeshType.Wedge | |
| 297 | p = Instance.new("Part", Model)
| |
| 298 | p.Name = "Part" | |
| 299 | p.TopSurface = 0 | |
| 300 | p.BottomSurface = 0 | |
| 301 | p.formFactor = "Custom" | |
| 302 | p.Size = Vector3.new(2.60, 11, 2.39) | |
| 303 | p.CFrame = CFrame.new(32.1999741, 10.7699986, 63, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
| 304 | p.BrickColor = BrickColor.new("Bright yellow")
| |
| 305 | p.Transparency = 0 | |
| 306 | p.Reflectance = .1 | |
| 307 | p.Material = Enum.Material.Plastic | |
| 308 | p = Instance.new("Part", Model)
| |
| 309 | p.Name = "Part" | |
| 310 | p.TopSurface = 0 | |
| 311 | p.BottomSurface = 0 | |
| 312 | p.formFactor = "Custom" | |
| 313 | p.Size = Vector3.new(5.19, 1, 1) | |
| 314 | p.CFrame = CFrame.new(46.2999878, 15.0699921, 58.4000015, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
| 315 | p.BrickColor = BrickColor.new("Mid gray")
| |
| 316 | p.Transparency = 0 | |
| 317 | p.Reflectance = .1 | |
| 318 | p.Material = Enum.Material.Plastic | |
| 319 | p = Instance.new("Part", Model)
| |
| 320 | p.Name = "Part" | |
| 321 | p.TopSurface = 0 | |
| 322 | p.BottomSurface = 0 | |
| 323 | p.formFactor = "Custom" | |
| 324 | p.Size = Vector3.new(5, 0.80, 0.79) | |
| 325 | p.CFrame = CFrame.new(30.6000195, 11.5999937, 63.3000107, -1.49008788e-008, -2.3933373e-007, 0.999990225, 6.6675625e-009, 0.99999392, 2.39334668e-007, -0.999994516, 6.66761935e-009, 7.45059765e-008) | |
| 326 | p.BrickColor = BrickColor.new("Bright yellow")
| |
| 327 | p.Transparency = 0 | |
| 328 | p.Reflectance = .1 | |
| 329 | p.Material = Enum.Material.Plastic | |
| 330 | m = Instance.new("SpecialMesh")
| |
| 331 | m.Scale = Vector3.new(1, 1, 1) | |
| 332 | m.Parent = p | |
| 333 | m.MeshType = Enum.MeshType.Wedge | |
| 334 | p = Instance.new("Part", Model)
| |
| 335 | p.Name = "Part" | |
| 336 | p.TopSurface = 0 | |
| 337 | p.BottomSurface = 0 | |
| 338 | p.formFactor = "Custom" | |
| 339 | p.Size = Vector3.new(10, 12, 10) | |
| 340 | p.CFrame = CFrame.new(51.8000298, 7.099998, 63.0000191, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
| 341 | p.BrickColor = BrickColor.new("Medium stone grey")
| |
| 342 | p.Transparency = 0 | |
| 343 | p.Reflectance = .1 | |
| 344 | p.Material = Enum.Material.Concrete | |
| 345 | m = Instance.new("CylinderMesh")
| |
| 346 | m.Scale = Vector3.new(1, 1.02999997, 1) | |
| 347 | m.Parent = p | |
| 348 | p = Instance.new("Part", Model)
| |
| 349 | p.Name = "Part" | |
| 350 | p.TopSurface = 0 | |
| 351 | p.BottomSurface = 0 | |
| 352 | p.formFactor = "Custom" | |
| 353 | p.Size = Vector3.new(0.60, 5.19, 5) | |
| 354 | p.CFrame = CFrame.new(35.9000015, 13, 63.2999992, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
| 355 | p.BrickColor = BrickColor.new("Bright yellow")
| |
| 356 | p.Transparency = 0 | |
| 357 | p.Reflectance = .1 | |
| 358 | p.Material = Enum.Material.Plastic | |
| 359 | p = Instance.new("Part", Model)
| |
| 360 | p.Name = "Part" | |
| 361 | p.TopSurface = 0 | |
| 362 | p.BottomSurface = 0 | |
| 363 | p.formFactor = "Custom" | |
| 364 | p.Size = Vector3.new(6, 6.79, 2.79) | |
| 365 | p.CFrame = CFrame.new(51.9999847, 9.06999207, 55.5, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 366 | p.BrickColor = BrickColor.new("Bright yellow")
| |
| 367 | p.Transparency = 0 | |
| 368 | p.Reflectance = .1 | |
| 369 | p.Material = Enum.Material.Plastic | |
| 370 | m = Instance.new("SpecialMesh")
| |
| 371 | m.Scale = Vector3.new(1, 1, 1) | |
| 372 | m.Parent = p | |
| 373 | m.MeshType = Enum.MeshType.Wedge | |
| 374 | p = Instance.new("Part", Model)
| |
| 375 | p.Name = "Part" | |
| 376 | p.TopSurface = 0 | |
| 377 | p.BottomSurface = 0 | |
| 378 | p.formFactor = "Custom" | |
| 379 | p.Size = Vector3.new(2.79, 7.40, 0.79) | |
| 380 | p.CFrame = CFrame.new(44.7999916, 14.0699921, 63.2000008, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
| 381 | p.BrickColor = BrickColor.new("Black")
| |
| 382 | p.Transparency = 0 | |
| 383 | p.Reflectance = .1 | |
| 384 | p.Material = Enum.Material.Plastic | |
| 385 | p = Instance.new("Part", Model)
| |
| 386 | p.Name = "Part" | |
| 387 | p.TopSurface = 0 | |
| 388 | p.BottomSurface = 0 | |
| 389 | p.formFactor = "Custom" | |
| 390 | p.Size = Vector3.new(5.40, 11, 10) | |
| 391 | p.CFrame = CFrame.new(50.1999893, 9.76999474, 63, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
| 392 | p.BrickColor = BrickColor.new("Bright yellow")
| |
| 393 | p.Transparency = 0 | |
| 394 | p.Reflectance = .1 | |
| 395 | p.Material = Enum.Material.Plastic | |
| 396 | p = Instance.new("Part", Model)
| |
| 397 | p.Name = "Part" | |
| 398 | p.TopSurface = 0 | |
| 399 | p.BottomSurface = 0 | |
| 400 | p.formFactor = "Custom" | |
| 401 | p.Size = Vector3.new(11, 0.60, 2.39) | |
| 402 | p.CFrame = CFrame.new(32.1999855, 12.3699961, 62.9999733, -1.49008788e-008, -2.3933373e-007, 0.999990225, 6.6675625e-009, 0.99999392, 2.39334668e-007, -0.999994516, 6.66761935e-009, 7.45059765e-008) | |
| 403 | p.BrickColor = BrickColor.new("Bright yellow")
| |
| 404 | p.Transparency = 0 | |
| 405 | p.Reflectance = .1 | |
| 406 | p.Material = Enum.Material.Plastic | |
| 407 | m = Instance.new("SpecialMesh")
| |
| 408 | m.Scale = Vector3.new(1, 1, 1) | |
| 409 | m.Parent = p | |
| 410 | m.MeshType = Enum.MeshType.Wedge | |
| 411 | p = Instance.new("Part", Model)
| |
| 412 | p.Name = "Part" | |
| 413 | p.TopSurface = 0 | |
| 414 | p.BottomSurface = 0 | |
| 415 | p.formFactor = "Custom" | |
| 416 | p.Size = Vector3.new(4, 13, 1) | |
| 417 | p.CFrame = CFrame.new(40.8999939, 10.0700006, 63, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
| 418 | p.BrickColor = BrickColor.new("Bright yellow")
| |
| 419 | p.Transparency = 0 | |
| 420 | p.Reflectance = .1 | |
| 421 | p.Material = Enum.Material.Plastic | |
| 422 | p = Instance.new("Part", Model)
| |
| 423 | p.Name = "Part" | |
| 424 | p.TopSurface = 0 | |
| 425 | p.BottomSurface = 0 | |
| 426 | p.formFactor = "Custom" | |
| 427 | p.Size = Vector3.new(10.1, 1, 0.99) | |
| 428 | p.CFrame = CFrame.new(51.8999825, 18.1699867, 62.9999733, 1.49008796e-008, 2.39336913e-007, -0.999990225, 6.66744882e-009, 0.99999392, 2.39337737e-007, 0.999994516, -6.66736355e-009, -7.45059765e-008) | |
| 429 | p.BrickColor = BrickColor.new("Mid gray")
| |
| 430 | p.Transparency = 0 | |
| 431 | p.Reflectance = .1 | |
| 432 | p.Material = Enum.Material.Plastic | |
| 433 | m = Instance.new("SpecialMesh")
| |
| 434 | m.Scale = Vector3.new(1, 1, 1) | |
| 435 | m.Parent = p | |
| 436 | m.MeshType = Enum.MeshType.Wedge | |
| 437 | p = Instance.new("Part", Model)
| |
| 438 | p.Name = "Part" | |
| 439 | p.TopSurface = 0 | |
| 440 | p.BottomSurface = 0 | |
| 441 | p.formFactor = "Custom" | |
| 442 | p.Size = Vector3.new(1, 1, 4.59) | |
| 443 | p.CFrame = CFrame.new(49.099987, 18.1699944, 67.5999985, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
| 444 | p.BrickColor = BrickColor.new("Mid gray")
| |
| 445 | p.Transparency = 0 | |
| 446 | p.Reflectance = .1 | |
| 447 | p.Material = Enum.Material.Plastic | |
| 448 | p = Instance.new("Part", Model)
| |
| 449 | p.Name = "Part" | |
| 450 | p.TopSurface = 0 | |
| 451 | p.BottomSurface = 0 | |
| 452 | p.formFactor = "Custom" | |
| 453 | p.Size = Vector3.new(1.99, 1, 1) | |
| 454 | p.CFrame = CFrame.new(51.8999863, 16.6699886, 67.5999908, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
| 455 | p.BrickColor = BrickColor.new("Mid gray")
| |
| 456 | p.Transparency = 0 | |
| 457 | p.Reflectance = .1 | |
| 458 | p.Material = Enum.Material.Plastic | |
| 459 | p = Instance.new("Part", Model)
| |
| 460 | p.Name = "Part" | |
| 461 | p.TopSurface = 0 | |
| 462 | p.BottomSurface = 0 | |
| 463 | p.formFactor = "Custom" | |
| 464 | p.Size = Vector3.new(1, 1, 4.59) | |
| 465 | p.CFrame = CFrame.new(49.099987, 18.1699867, 63.0000153, 0, -5.38727239e-028, 0.999999642, -0.999999642, -5.38727287e-028, 9.62964972e-035, 5.38727335e-028, -0.999999762, -4.37113776e-008) | |
| 466 | p.BrickColor = BrickColor.new("Mid gray")
| |
| 467 | p.Transparency = 0 | |
| 468 | p.Reflectance = .1 | |
| 469 | p.Material = Enum.Material.Plastic | |
| 470 | p = Instance.new("Part", Model)
| |
| 471 | p.Name = "Part" | |
| 472 | p.TopSurface = 0 | |
| 473 | p.BottomSurface = 0 | |
| 474 | p.formFactor = "Custom" | |
| 475 | p.Size = Vector3.new(10.1, 1, 0.99) | |
| 476 | p.CFrame = CFrame.new(46.2999916, 18.1699886, 63.0000229, -1.49008823e-008, -2.39345496e-007, 0.999990225, 6.66727829e-009, 0.99999392, 2.39346434e-007, -0.999994516, 6.66733513e-009, 7.45059765e-008) | |
| 477 | p.BrickColor = BrickColor.new("Mid gray")
| |
| 478 | p.Transparency = 0 | |
| 479 | p.Reflectance = .1 | |
| 480 | p.Material = Enum.Material.Plastic | |
| 481 | m = Instance.new("SpecialMesh")
| |
| 482 | m.Scale = Vector3.new(1, 1, 1) | |
| 483 | m.Parent = p | |
| 484 | m.MeshType = Enum.MeshType.Wedge | |
| 485 | ||
| 486 | Spawn = function() | |
| 487 | Modelc = Model:clone() | |
| 488 | for _, v in pairs(Modelc:children()) do | |
| 489 | if v.className == "Part" then | |
| 490 | if v.Name ~= "Center" then | |
| 491 | w = Instance.new("Weld")
| |
| 492 | w.Part0 = Modelc.Center | |
| 493 | w.Part1 = v | |
| 494 | w.C1 = v.CFrame:inverse() * CFrame.new(v.Position) | |
| 495 | w.C0 = Modelc.Center.CFrame:inverse() * CFrame.new(v.Position) | |
| 496 | w.Parent = w.Part0 | |
| 497 | end | |
| 498 | end | |
| 499 | end | |
| 500 | return Modelc | |
| 501 | end | |
| 502 | ||
| 503 | CameraRadius = 66 | |
| 504 | TimeStopRadius = 66 | |
| 505 | ||
| 506 | RightShoulderC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 507 | RightShoulderC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 508 | LeftShoulderC0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 509 | LeftShoulderC1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 510 | RightHipC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 511 | RightHipC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
| 512 | LeftHipC0 = CFrame.new(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 513 | LeftHipC1 = CFrame.new(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
| 514 | NeckC0 = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 515 | NeckC1 = CFrame.new(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 516 | RootJointC0 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 517 | RootJointC1 = CFrame.new(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 518 | ||
| 519 | getWelds = function(c) --designate weld variables | |
| 520 | local t = c.Torso | |
| 521 | local hrp = c.HumanoidRootPart.RootJoint | |
| 522 | RightShoulder = t:FindFirstChild("Right Shoulder")
| |
| 523 | LeftShoulder = t:FindFirstChild("Left Shoulder")
| |
| 524 | RightHip = t:FindFirstChild("Right Hip")
| |
| 525 | LeftHip = t:FindFirstChild("Left Hip")
| |
| 526 | RootJoint = hrp | |
| 527 | Neck = t:FindFirstChild("Neck")
| |
| 528 | end | |
| 529 | resetWelds = function(ext, occ) --extent 1-3; occlusion | |
| 530 | --1 == reset desiredangle/currentangle | |
| 531 | --2 == reset C0/C1 | |
| 532 | --3 == reset both des/cur/c0/c1 | |
| 533 | local r = {
| |
| 534 | RightShoulder, | |
| 535 | LeftShoulder, | |
| 536 | RightHip, | |
| 537 | LeftHip, | |
| 538 | RootJoint, | |
| 539 | Neck, | |
| 540 | Grip | |
| 541 | } | |
| 542 | for _, v in pairs(r) do | |
| 543 | for i = 1, #occ do | |
| 544 | if occ[i] == v then | |
| 545 | table.remove(r, _) | |
| 546 | end | |
| 547 | end | |
| 548 | end | |
| 549 | for _, v in pairs(r) do | |
| 550 | if v.Name == "Right Shoulder" then | |
| 551 | if ext == 1 then | |
| 552 | v.DesiredAngle = 0 | |
| 553 | v.CurrentAngle = 0 | |
| 554 | elseif ext == 2 then | |
| 555 | v.C0 = RightShoulderC0 | |
| 556 | v.C1 = RightShoulderC1 | |
| 557 | elseif ext == 3 then | |
| 558 | v.DesiredAngle = 0 | |
| 559 | v.CurrentAngle = 0 | |
| 560 | v.C0 = RightShoulderC0 | |
| 561 | v.C1 = RightShoulderC1 | |
| 562 | end | |
| 563 | elseif v.Name == "Left Shoulder" then | |
| 564 | if ext == 1 then | |
| 565 | v.DesiredAngle = 0 | |
| 566 | v.CurrentAngle = 0 | |
| 567 | elseif ext == 2 then | |
| 568 | v.C0 = LeftShoulderC0 | |
| 569 | v.C1 = LeftShoulderC1 | |
| 570 | elseif ext == 3 then | |
| 571 | v.DesiredAngle = 0 | |
| 572 | v.CurrentAngle = 0 | |
| 573 | v.C0 = LeftShoulderC0 | |
| 574 | v.C1 = LeftShoulderC1 | |
| 575 | end | |
| 576 | elseif v.Name == "Right Hip" then | |
| 577 | if ext == 1 then | |
| 578 | v.DesiredAngle = 0 | |
| 579 | v.CurrentAngle = 0 | |
| 580 | elseif ext == 2 then | |
| 581 | v.C0 = RightHipC0 | |
| 582 | v.C1 = RightHipC1 | |
| 583 | elseif ext == 3 then | |
| 584 | v.DesiredAngle = 0 | |
| 585 | v.CurrentAngle = 0 | |
| 586 | v.C0 = RightHipC0 | |
| 587 | v.C1 = RightHipC1 | |
| 588 | end | |
| 589 | elseif v.Name == "Left Hip" then | |
| 590 | if ext == 1 then | |
| 591 | v.DesiredAngle = 0 | |
| 592 | v.CurrentAngle = 0 | |
| 593 | elseif ext == 2 then | |
| 594 | v.C0 = LeftHipC0 | |
| 595 | v.C1 = LeftHipC1 | |
| 596 | elseif ext == 3 then | |
| 597 | v.DesiredAngle = 0 | |
| 598 | v.CurrentAngle = 0 | |
| 599 | v.C0 = LeftHipC0 | |
| 600 | v.C1 = LeftHipC1 | |
| 601 | end | |
| 602 | elseif v.Name == "Neck" then | |
| 603 | if ext == 1 then | |
| 604 | v.DesiredAngle = 0 | |
| 605 | v.CurrentAngle = 0 | |
| 606 | elseif ext == 2 then | |
| 607 | v.C0 = NeckC0 | |
| 608 | v.C1 = NeckC1 | |
| 609 | elseif ext == 3 then | |
| 610 | v.DesiredAngle = 0 | |
| 611 | v.CurrentAngle = 0 | |
| 612 | v.C0 = NeckC0 | |
| 613 | v.C1 = NeckC1 | |
| 614 | end | |
| 615 | elseif v.Name == "RootJoint" then | |
| 616 | if ext == 1 then | |
| 617 | v.DesiredAngle = 0 | |
| 618 | v.CurrentAngle = 0 | |
| 619 | elseif ext == 2 then | |
| 620 | v.C0 = RootJointC0 | |
| 621 | v.C1 = RootJointC1 | |
| 622 | elseif ext == 3 then | |
| 623 | v.DesiredAngle = 0 | |
| 624 | v.CurrentAngle = 0 | |
| 625 | v.C0 = RootJointC0 | |
| 626 | v.C1 = RootJointC1 | |
| 627 | end | |
| 628 | elseif v.Name == "RightGrip" then | |
| 629 | if ext == 1 then | |
| 630 | elseif ext == 2 then | |
| 631 | Grip.C0 = nGrip.C0 | |
| 632 | Grip.C1 = nGrip.C1 | |
| 633 | elseif ext == 3 then | |
| 634 | Grip.C0 = nGrip.C0 | |
| 635 | Grip.C1 = nGrip.C1 | |
| 636 | end | |
| 637 | end | |
| 638 | end | |
| 639 | end | |
| 640 | ||
| 641 | ||
| 642 | doitdocdoit = function() | |
| 643 | if deb == false then | |
| 644 | return | |
| 645 | end | |
| 646 | deb = false | |
| 647 | ||
| 648 | vPlayer = game.Players.LocalPlayer | |
| 649 | cPlayer = vPlayer.Character | |
| 650 | Anim = cPlayer.Animate | |
| 651 | Anim.Disabled = true | |
| 652 | Hum = cPlayer.Humanoid | |
| 653 | Hum.Name = "NOPE" | |
| 654 | Hum.WalkSpeed = 0 | |
| 655 | getWelds(cPlayer) | |
| 656 | resetWelds(3, {})
| |
| 657 | ||
| 658 | bodypos = Instance.new("BodyPosition")
| |
| 659 | bodypos.P = 4000 | |
| 660 | bodypos.maxForce = Vector3.new(5000000, 50000000, 5000000) * 5000 | |
| 661 | bodypos.position = cPlayer.Torso.Position + Vector3.new(0, .5, 0) | |
| 662 | bodypos.Parent = cPlayer.Torso | |
| 663 | ||
| 664 | dir = cPlayer.HumanoidRootPart.CFrame.lookVector | |
| 665 | CPlayer = cPlayer | |
| 666 | partpos = Instance.new("Part", workspace)
| |
| 667 | partpos.Transparency = 1 | |
| 668 | partpos.CanCollide = false | |
| 669 | partpos.Anchored = true | |
| 670 | partpos.CFrame = cPlayer.Torso.CFrame | |
| 671 | ||
| 672 | sound = Instance.new("Sound")
| |
| 673 | sound.Parent = partpos | |
| 674 | sound.Volume = 1 | |
| 675 | sound.SoundId = "http://www.roblox.com/asset/?id=468760371" | |
| 676 | -- sound.SoundId="http://www.roblox.com/asset/?id=168009623" | |
| 677 | sound2 = Instance.new("Sound")
| |
| 678 | sound2.Parent = workspace.CurrentCamera | |
| 679 | sound2.Volume = 1 | |
| 680 | sound2.SoundId = "http://www.roblox.com/asset/?id=468760371" | |
| 681 | -- sound2.SoundId="http://www.roblox.com/asset/?id=168009623" | |
| 682 | sound:Play() | |
| 683 | sound2:Play() | |
| 684 | expected = 10 | |
| 685 | did = false | |
| 686 | pooted = 0 | |
| 687 | sos = game:GetService("RunService").Stepped:connect(function()
| |
| 688 | pooted = pooted + 1 | |
| 689 | if pooted >= expected + 1 then | |
| 690 | sos:disconnect() | |
| 691 | did = true | |
| 692 | return | |
| 693 | end | |
| 694 | resetWelds(3, {})
| |
| 695 | RightShoulder.C0 = RightShoulder.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-pooted), math.rad(0), math.rad(0)) | |
| 696 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-pooted), math.rad(0), math.rad(0)) | |
| 697 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-pooted), math.rad(0), math.rad(0)) | |
| 698 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-pooted), math.rad(0), math.rad(0)) | |
| 699 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 700 | RootJoint.C0 = RootJoint.C0 * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 701 | end) | |
| 702 | --[[sound=Instance.new("Sound")
| |
| 703 | sound.Parent=cPlayer.Torso | |
| 704 | sound.Volume=1 | |
| 705 | sound.SoundId="http://www.roblox.com/asset/?id=316900066" | |
| 706 | sound:Play()]]-- | |
| 707 | while did == false do | |
| 708 | wait() | |
| 709 | end | |
| 710 | ||
| 711 | expected = 10 | |
| 712 | did = false | |
| 713 | pooted = 0 | |
| 714 | sos = game:GetService("RunService").Stepped:connect(function()
| |
| 715 | pooted = pooted + 1 | |
| 716 | if pooted >= expected + 1 then | |
| 717 | sos:disconnect() | |
| 718 | did = true | |
| 719 | return | |
| 720 | end | |
| 721 | resetWelds(3, {})
| |
| 722 | RightShoulder.C0 = RightShoulder.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-12 - pooted * 8), math.rad(0), math.rad(pooted)) | |
| 723 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, 0, pooted * .1) * CFrame.fromEulerAnglesXYZ(math.rad(-12 - pooted * 9), math.rad(pooted * 9), math.rad(0)) | |
| 724 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-12), math.rad(0), math.rad(0)) | |
| 725 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-12), math.rad(0), math.rad(0)) | |
| 726 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(pooted / 2), math.rad(0), math.rad(-pooted * 9)) | |
| 727 | RootJoint.C0 = RootJoint.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-pooted), math.rad(pooted / 3), math.rad(pooted * 10)) | |
| 728 | end) | |
| 729 | while did == false do | |
| 730 | wait() | |
| 731 | end | |
| 732 | wait(.2) | |
| 733 | expected = 5 | |
| 734 | did = false | |
| 735 | pooted = 0 | |
| 736 | nubhit = nil | |
| 737 | sos = game:GetService("RunService").Stepped:connect(function()
| |
| 738 | pooted = pooted + 1 | |
| 739 | if pooted >= expected + 1 then | |
| 740 | sos:disconnect() | |
| 741 | did = true | |
| 742 | return | |
| 743 | end | |
| 744 | resetWelds(3, {})
| |
| 745 | RightShoulder.C0 = RightShoulder.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-12 - pooted * 8), math.rad(0), math.rad(pooted)) | |
| 746 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, 0, pooted * .1) * CFrame.fromEulerAnglesXYZ(math.rad(-12 - pooted * 9), math.rad(pooted * 9), math.rad(0)) | |
| 747 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-12), math.rad(0), math.rad(0)) | |
| 748 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-12), math.rad(0), math.rad(0)) | |
| 749 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(5), math.rad(0), math.rad(-90 + pooted * 40)) | |
| 750 | RootJoint.C0 = RootJoint.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-10 + pooted * 4), math.rad(3.3), math.rad(90 - pooted * 34)) | |
| 751 | if nubhit == nil then | |
| 752 | bodypos.position = bodypos.position + dir * 4 | |
| 753 | cPlayer.Torso.CFrame = CFrame.new(bodypos.position + dir * 4, bodypos.position + dir * 20) | |
| 754 | --bodypos.position=bodypos.position + dir*9 | |
| 755 | --cPlayer.Torso.CFrame=CFrame.new(bodypos.position+dir*9,bodypos.position+dir*20) | |
| 756 | end | |
| 757 | if nubhit == nil and pooted >= 2 then | |
| 758 | pos = bodypos.position + dir * 2 | |
| 759 | radi = 6 | |
| 760 | for _, v in pairs(workspace:children()) do | |
| 761 | h = v:FindFirstChild("Humanoid")
| |
| 762 | t = v:FindFirstChild("Torso")
| |
| 763 | if h ~= nil and t ~= nil and v ~= cPlayer then | |
| 764 | if (t.Position - pos).magnitude <= radi then | |
| 765 | print(":>")
| |
| 766 | nubhit = v | |
| 767 | break | |
| 768 | end | |
| 769 | end | |
| 770 | end | |
| 771 | end | |
| 772 | if nubhit ~= nil then | |
| 773 | if nubhit.Torso:FindFirstChild("PART1") == nil then
| |
| 774 | v = Instance.new("BodyVelocity")
| |
| 775 | v.P = 4000 | |
| 776 | v.maxForce = Vector3.new(500000000000, 500000000000, 500000000000) | |
| 777 | v.velocity = dir * 4 + Vector3.new(0, 4, 0) | |
| 778 | v.Name = "PART1" | |
| 779 | v.Parent = nubhit.Torso | |
| 780 | game:GetService("Debris"):AddItem(v, 5)
| |
| 781 | coroutine.resume(coroutine.create(function(v) | |
| 782 | for i = 1, 100 do | |
| 783 | v.velocity = v.velocity - Vector3.new(0, .07, 0) | |
| 784 | wait() | |
| 785 | end | |
| 786 | end), v) | |
| 787 | v = Instance.new("BodyGyro")
| |
| 788 | v.P = 20 | |
| 789 | v.D = 30 | |
| 790 | v.maxTorque = Vector3.new(5000000, 5000000, 5000000) | |
| 791 | v.cframe = CPlayer.Torso.CFrame * CFrame.fromEulerAnglesXYZ(math.pi / 2, math.pi, 0) | |
| 792 | v.Name = "PART1" | |
| 793 | v.Parent = nubhit.Torso | |
| 794 | game:GetService("Debris"):AddItem(v, 5)
| |
| 795 | end | |
| 796 | end | |
| 797 | end) | |
| 798 | while did == false do | |
| 799 | wait() | |
| 800 | end | |
| 801 | if nubhit == nil then | |
| 802 | sound:Stop() | |
| 803 | wait(.5) | |
| 804 | sound2:Stop() | |
| 805 | else | |
| 806 | expected = 32 | |
| 807 | did = false | |
| 808 | pooted = 0 | |
| 809 | sos = game:GetService("RunService").Stepped:connect(function()
| |
| 810 | pooted = pooted + 1 | |
| 811 | if pooted >= expected + 1 then | |
| 812 | sos:disconnect() | |
| 813 | did = true | |
| 814 | return | |
| 815 | end | |
| 816 | RightShoulder.C0 = RightShoulder.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-.03), math.rad(0), math.rad(.03)) | |
| 817 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, 0, .02) * CFrame.fromEulerAnglesXYZ(math.rad(-.05), math.rad(.08), math.rad(0)) | |
| 818 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-.04), math.rad(0), math.rad(0)) | |
| 819 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-.04), math.rad(0), math.rad(0)) | |
| 820 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(.05), math.rad(0), math.rad(.1)) | |
| 821 | RootJoint.C0 = RootJoint.C0 * CFrame.fromEulerAnglesXYZ(math.rad(.2), math.rad(0.05), math.rad(-.05)) | |
| 822 | bodypos.position = bodypos.position + dir * .05 | |
| 823 | cPlayer.Torso.CFrame = CFrame.new(bodypos.position + dir * .05, bodypos.position + dir * 20) | |
| 824 | end) | |
| 825 | while did == false do | |
| 826 | wait() | |
| 827 | end | |
| 828 | bodypos.Parent = nil | |
| 829 | expected = 12 | |
| 830 | did = false | |
| 831 | pooted = 0 | |
| 832 | sos = game:GetService("RunService").Stepped:connect(function()
| |
| 833 | pooted = pooted + 1 | |
| 834 | if pooted >= expected + 1 then | |
| 835 | sos:disconnect() | |
| 836 | did = true | |
| 837 | return | |
| 838 | end | |
| 839 | RightShoulder.C0 = RightShoulder.C0 * CFrame.fromEulerAnglesXYZ(math.rad(4.5), math.rad(0), math.rad(-.15)) | |
| 840 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, 0, -.07) * CFrame.fromEulerAnglesXYZ(math.rad(5.6), math.rad(-4.5), math.rad(1.25)) | |
| 841 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(1.24), math.rad(0), math.rad(0)) | |
| 842 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(1.24), math.rad(0), math.rad(0)) | |
| 843 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(1), math.rad(-2.5), math.rad(-8)) | |
| 844 | RootJoint.C0 = RootJoint.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-.5), math.rad(-.5), math.rad(7)) | |
| 845 | end) | |
| 846 | ||
| 847 | while did == false do | |
| 848 | wait() | |
| 849 | end | |
| 850 | expected = 6 | |
| 851 | did = false | |
| 852 | pooted = 0 | |
| 853 | sos = game:GetService("RunService").Stepped:connect(function()
| |
| 854 | pooted = pooted + 1 | |
| 855 | if pooted >= expected + 1 then | |
| 856 | sos:disconnect() | |
| 857 | did = true | |
| 858 | return | |
| 859 | end | |
| 860 | resetWelds(3, {})
| |
| 861 | RightShoulder.C0 = RightShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(pooted * 5), math.rad(0), math.rad(pooted * 18)) | |
| 862 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(pooted * 5), math.rad(0), math.rad(-pooted * 18)) | |
| 863 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-pooted * 2), math.rad(0), math.rad(pooted * 6)) | |
| 864 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-pooted * 2), math.rad(0), math.rad(-pooted * 6)) | |
| 865 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(20 + pooted * 5), math.rad(0), math.rad(0)) | |
| 866 | RootJoint.C0 = RootJoint.C0 * CFrame.new(0, pooted * .03, -pooted * .1) * CFrame.fromEulerAnglesXYZ(math.rad(pooted * 6), math.rad(0), math.rad(pooted * 1)) | |
| 867 | print(":(")
| |
| 868 | end) | |
| 869 | wait(.3) | |
| 870 | while did == false do | |
| 871 | wait() | |
| 872 | end | |
| 873 | resetWelds(3, {
| |
| 874 | "Neck" | |
| 875 | }) | |
| 876 | expected = 5 | |
| 877 | did = false | |
| 878 | pooted = 0 | |
| 879 | p = Instance.new("Part", workspace)
| |
| 880 | p.Name = "ORB" | |
| 881 | p.TopSurface = 0 | |
| 882 | p.BottomSurface = 0 | |
| 883 | p.formFactor = "Custom" | |
| 884 | p.CFrame = cPlayer.Torso.CFrame | |
| 885 | m = Instance.new("SpecialMesh", p)
| |
| 886 | m.MeshType = "Sphere" | |
| 887 | p.BrickColor = BrickColor:White() | |
| 888 | p.Size = Vector3.new(1, 1, 1) | |
| 889 | p.CanCollide = false | |
| 890 | p.Anchored = true | |
| 891 | game:GetService("Debris"):AddItem(p, 5)
| |
| 892 | coroutine.resume(coroutine.create(function(p) | |
| 893 | nubhit.Torso.Anchored = true | |
| 894 | for i = 1, 10 do | |
| 895 | p.Mesh.Scale = p.Mesh.Scale + Vector3.new(5, 5, 5) | |
| 896 | p.Transparency = .5 + i / 20 | |
| 897 | wait() | |
| 898 | end | |
| 899 | p:Remove() | |
| 900 | end), p) | |
| 901 | sos = game:GetService("RunService").Stepped:connect(function()
| |
| 902 | pooted = pooted + 1 | |
| 903 | if pooted >= expected + 1 then | |
| 904 | sos:disconnect() | |
| 905 | did = true | |
| 906 | return | |
| 907 | end | |
| 908 | resetWelds(3, {})
| |
| 909 | RightShoulder.C0 = RightShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-pooted * 10), math.rad(-pooted * 12), math.rad(pooted * 10)) | |
| 910 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-pooted * 10), math.rad(pooted * 12), math.rad(-pooted * 10)) | |
| 911 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-pooted * 2), math.rad(0), math.rad(-pooted * 10)) | |
| 912 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-pooted * 2), math.rad(0), math.rad(pooted * 9)) | |
| 913 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(20 - pooted * 6), math.rad(0), math.rad(0)) | |
| 914 | RootJoint.C0 = RootJoint.C0 * CFrame.new(0, pooted * .03, -pooted * .1) * CFrame.fromEulerAnglesXYZ(math.rad(-pooted * 9.5), math.rad(0), math.rad(pooted * .2)) | |
| 915 | print(":(")
| |
| 916 | end) | |
| 917 | ||
| 918 | while did == false do | |
| 919 | wait() | |
| 920 | end | |
| 921 | wait(1) | |
| 922 | expected = 5 | |
| 923 | did = false | |
| 924 | pooted = 0 | |
| 925 | sos = game:GetService("RunService").Stepped:connect(function()
| |
| 926 | pooted = pooted + 1 | |
| 927 | if pooted >= expected + 1 then | |
| 928 | sos:disconnect() | |
| 929 | did = true | |
| 930 | return | |
| 931 | end | |
| 932 | resetWelds(3, {})
| |
| 933 | RightShoulder.C0 = RightShoulder.C0 * CFrame.new(0, 0.05 * pooted, 0) * CFrame.fromEulerAnglesXYZ(math.rad(pooted * 2), math.rad(0), math.rad(pooted * 6)) | |
| 934 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(pooted * 2), math.rad(0), math.rad(-pooted * 6)) | |
| 935 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-pooted * 2), math.rad(0), math.rad(-57 + pooted * 20)) | |
| 936 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-pooted * 2), math.rad(0), math.rad(57 - pooted * 20)) | |
| 937 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(pooted * 4), math.rad(0), math.rad(0)) | |
| 938 | RootJoint.C0 = RootJoint.C0 * CFrame.new(0, 0, -.1 * pooted) * CFrame.fromEulerAnglesXYZ(math.rad(-57 + pooted * 20), math.rad(0), math.rad(0)) | |
| 939 | print(":(")
| |
| 940 | end) | |
| 941 | while did == false do | |
| 942 | wait() | |
| 943 | end | |
| 944 | wait(.8) | |
| 945 | expected = 5 | |
| 946 | did = false | |
| 947 | pooted = 0 | |
| 948 | bodypos.Parent = cPlayer.Torso | |
| 949 | workspace.CurrentCamera.CameraType = "Follow" | |
| 950 | sos = game:GetService("RunService").Stepped:connect(function()
| |
| 951 | pooted = pooted + 1 | |
| 952 | if pooted >= expected + 1 then | |
| 953 | sos:disconnect() | |
| 954 | did = true | |
| 955 | return | |
| 956 | end | |
| 957 | RightShoulder.C0 = RightShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-2), math.rad(0), math.rad(-3)) | |
| 958 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(2), math.rad(0), math.rad(3)) | |
| 959 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(1), math.rad(0), math.rad(-8)) | |
| 960 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(1), math.rad(0), math.rad(8)) | |
| 961 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-14), math.rad(0), math.rad(0)) | |
| 962 | RootJoint.C0 = RootJoint.C0 * CFrame.new(0, 0, .05) * CFrame.fromEulerAnglesXYZ(math.rad(-7), math.rad(0), math.rad(0)) | |
| 963 | ||
| 964 | bodypos.position = bodypos.position + Vector3.new(0, 240, 0) | |
| 965 | cPlayer.Torso.CFrame = cPlayer.Torso.CFrame + Vector3.new(0, 240, 0) | |
| 966 | ||
| 967 | print(":(")
| |
| 968 | end) | |
| 969 | local DIOPLS = Instance.new("Sound", cPlayer.Torso)
| |
| 970 | DIOPLS.SoundId = "rbxassetid://316900066" | |
| 971 | DIOPLS.Volume = 1 | |
| 972 | DIOPLS:Play() | |
| 973 | Instance.new("DistortionSoundEffect", DIOPLS).Level = 1
| |
| 974 | game:GetService("Debris"):AddItem(DIOPLS, 19)
| |
| 975 | while did == false do | |
| 976 | wait() | |
| 977 | end | |
| 978 | wait(.8) | |
| 979 | LOL = Spawn() | |
| 980 | LOL.Parent = workspace | |
| 981 | LOL:MakeJoints() | |
| 982 | LOL:MoveTo(cPlayer.Torso.CFrame.p) | |
| 983 | C = LOL.Center | |
| 984 | C.CFrame = CFrame.new(nubhit.Torso.Position + Vector3.new(0, 1200, 0)) * CFrame.new(8, 0, 0) | |
| 985 | ||
| 986 | bb = Instance.new("BodyPosition")
| |
| 987 | bb.Parent = C | |
| 988 | bb.maxForce = Vector3.new(50000000000000000, 50000000000000000, 50000000000000000) | |
| 989 | bb.position = bb.Parent.Position | |
| 990 | C.CFrame = CFrame.new(bb.position) | |
| 991 | orig = bb.position | |
| 992 | ||
| 993 | gg = Instance.new("BodyGyro")
| |
| 994 | gg.P = 15000 | |
| 995 | gg.D = 100 | |
| 996 | gg.maxTorque = Vector3.new(500000000, 500000000, 500000000) | |
| 997 | gg.cframe = CFrame.new(C.Position, Vector3.new(nubhit.Torso.Position.x, C.Position.y, nubhit.Torso.Position.z)) * CFrame.fromEulerAnglesXYZ(-math.rad(10), math.rad(10), 0) | |
| 998 | gg.Parent = C | |
| 999 | ||
| 1000 | expected = 80 | |
| 1001 | did = false | |
| 1002 | pooted = 0 | |
| 1003 | ||
| 1004 | resetWelds(3, {})
| |
| 1005 | ||
| 1006 | Hum.PlatformStand = true | |
| 1007 | ||
| 1008 | RightShoulder.C0 = RightShoulder.C0 * CFrame.new(0, .4, 0) * CFrame.fromEulerAnglesXYZ(math.rad(30), math.rad(0), math.rad(180)) | |
| 1009 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, .4, 0) * CFrame.fromEulerAnglesXYZ(math.rad(30), math.rad(0), math.rad(-180)) | |
| 1010 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-8), math.rad(0), math.rad(-8)) | |
| 1011 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-8), math.rad(0), math.rad(8)) | |
| 1012 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-45), math.rad(0), math.rad(0)) | |
| 1013 | RootJoint.C0 = RootJoint.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1014 | ||
| 1015 | bodypos.Parent = nil | |
| 1016 | w = Instance.new("Weld")
| |
| 1017 | w.Part0 = C | |
| 1018 | w.Part1 = cPlayer.Torso | |
| 1019 | w.C0 = CFrame.new(.3, 5.6, -7) * CFrame.fromEulerAnglesXYZ(math.pi / .9, math.pi / 10, 0) | |
| 1020 | w.C0 = w.C0 * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1021 | w.Parent = w.Part0 | |
| 1022 | ||
| 1023 | sos = game:GetService("RunService").Stepped:connect(function()
| |
| 1024 | pooted = pooted + 1 | |
| 1025 | if pooted >= expected + 1 then | |
| 1026 | sos:disconnect() | |
| 1027 | did = true | |
| 1028 | return | |
| 1029 | end | |
| 1030 | ||
| 1031 | bb.position = orig - Vector3.new(0, 1202 / 80 * pooted, 0) | |
| 1032 | C.CFrame = C.CFrame - Vector3.new(0, 1202 / 80, 0) | |
| 1033 | print(":(")
| |
| 1034 | end) | |
| 1035 | ||
| 1036 | while did == false do | |
| 1037 | wait() | |
| 1038 | end | |
| 1039 | C.CFrame = CFrame.new(nubhit.Torso.Position + Vector3.new(0, 4, 0), Vector3.new(nubhit.Torso.Position.x, C.Position.y, nubhit.Torso.Position.z)) * CFrame.fromEulerAnglesXYZ(-math.rad(5), math.rad(5), 0) | |
| 1040 | C.CFrame = C.CFrame * CFrame.new(8, 0, 0) | |
| 1041 | bl2 = Instance.new("Part")
| |
| 1042 | bl2.TopSurface = 0 | |
| 1043 | bl2.BottomSurface = 0 | |
| 1044 | bl2.CanCollide = false | |
| 1045 | bl2.formFactor = "Symmetric" | |
| 1046 | local ShockWaveSound = Instance.new("Sound", bl2)
| |
| 1047 | ShockWaveSound.SoundId = "rbxassetid://138186576" | |
| 1048 | ShockWaveSound.Pitch = 0.8 | |
| 1049 | ShockWaveSound.Volume = 1 | |
| 1050 | ShockWaveSound:Play() | |
| 1051 | Instance.new("DistortionSoundEffect", ShockWaveSound).Level = 1
| |
| 1052 | m = Instance.new("SpecialMesh")
| |
| 1053 | m.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 1054 | m.Scale = Vector3.new(1, 4, 1) | |
| 1055 | m.Parent = bl2 | |
| 1056 | bl2.Size = Vector3.new(1, 1, 1) | |
| 1057 | bl2.Anchored = false | |
| 1058 | bl2.Name = "c" | |
| 1059 | bl2.CFrame = CFrame.new(C.Position) - Vector3.new(0, 2, 0) | |
| 1060 | bl2.BrickColor = BrickColor.new("White")
| |
| 1061 | bl2.Parent = CPlayer | |
| 1062 | coroutine.resume(coroutine.create(function(p) | |
| 1063 | for i = 1, 10 do | |
| 1064 | p.Mesh.Scale = p.Mesh.Scale + Vector3.new(8, 0, 8) | |
| 1065 | p.Transparency = .25 + i * .075 | |
| 1066 | p.CFrame = p.CFrame * CFrame.fromEulerAnglesXYZ(0, math.rad(5), 0) | |
| 1067 | wait() | |
| 1068 | end | |
| 1069 | p:Remove() | |
| 1070 | end), bl2) | |
| 1071 | bl2.Anchored = true | |
| 1072 | ||
| 1073 | bl2 = Instance.new("Part")
| |
| 1074 | bl2.TopSurface = 0 | |
| 1075 | bl2.BottomSurface = 0 | |
| 1076 | bl2.CanCollide = false | |
| 1077 | bl2.formFactor = "Symmetric" | |
| 1078 | m = Instance.new("SpecialMesh")
| |
| 1079 | m.MeshId = "http://www.roblox.com/asset/?id=20329976" | |
| 1080 | m.Scale = Vector3.new(1, 6, 1) | |
| 1081 | m.Parent = bl2 | |
| 1082 | bl2.Size = Vector3.new(1, 1, 1) | |
| 1083 | bl2.Anchored = false | |
| 1084 | bl2.Name = "c" | |
| 1085 | bl2.CFrame = CFrame.new(C.Position) - Vector3.new(0, 2, 0) | |
| 1086 | bl2.BrickColor = BrickColor.new("White")
| |
| 1087 | bl2.Parent = CPlayer | |
| 1088 | coroutine.resume(coroutine.create(function(p) | |
| 1089 | for i = 1, 20 do | |
| 1090 | p.Mesh.Scale = p.Mesh.Scale + Vector3.new(6, 0, 6) | |
| 1091 | p.Transparency = i / 20 | |
| 1092 | p.CFrame = p.CFrame * CFrame.fromEulerAnglesXYZ(0, math.rad(3), 0) | |
| 1093 | wait() | |
| 1094 | end | |
| 1095 | p:Remove() | |
| 1096 | end), bl2) | |
| 1097 | bl2.Anchored = true | |
| 1098 | ||
| 1099 | gg.cframe = gg.cframe * CFrame.fromEulerAnglesXYZ(math.rad(10), -math.rad(10), 0) | |
| 1100 | expected = 3 | |
| 1101 | did = false | |
| 1102 | pooted = 0 | |
| 1103 | workspace.CurrentCamera.CameraType = "Follow" | |
| 1104 | sos = game:GetService("RunService").Stepped:connect(function()
| |
| 1105 | pooted = pooted + 1 | |
| 1106 | if pooted >= expected + 1 then | |
| 1107 | sos:disconnect() | |
| 1108 | did = true | |
| 1109 | return | |
| 1110 | end | |
| 1111 | RightShoulder.C0 = RightShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1112 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1113 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-4), math.rad(0), math.rad(0)) | |
| 1114 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(4), math.rad(0), math.rad(0)) | |
| 1115 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1116 | RootJoint.C0 = RootJoint.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(5), math.rad(0), math.rad(0)) | |
| 1117 | ||
| 1118 | w.C0 = w.C0 * CFrame.fromEulerAnglesXYZ(math.rad(15), 0, 0) | |
| 1119 | ||
| 1120 | print(":(")
| |
| 1121 | end) | |
| 1122 | while did == false do | |
| 1123 | wait() | |
| 1124 | end | |
| 1125 | wait(.3) | |
| 1126 | expected = 5 | |
| 1127 | did = false | |
| 1128 | pooted = 0 | |
| 1129 | workspace.CurrentCamera.CameraType = "Follow" | |
| 1130 | sos = game:GetService("RunService").Stepped:connect(function()
| |
| 1131 | pooted = pooted + 1 | |
| 1132 | if pooted >= expected + 1 then | |
| 1133 | sos:disconnect() | |
| 1134 | did = true | |
| 1135 | return | |
| 1136 | end | |
| 1137 | RightShoulder.C0 = RightShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1138 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1139 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(-8)) | |
| 1140 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(8)) | |
| 1141 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(5), math.rad(0), math.rad(0)) | |
| 1142 | RootJoint.C0 = RootJoint.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(14), math.rad(0), math.rad(0)) | |
| 1143 | ||
| 1144 | w.C0 = w.C0 * CFrame.new(0, 0, -.04) * CFrame.fromEulerAnglesXYZ(math.rad(15), 0, 0) | |
| 1145 | ||
| 1146 | print(":(")
| |
| 1147 | end) | |
| 1148 | while did == false do | |
| 1149 | wait() | |
| 1150 | end | |
| 1151 | expected = 203 | |
| 1152 | did = false | |
| 1153 | pooted = 0 | |
| 1154 | workspace.CurrentCamera.CameraType = "Follow" | |
| 1155 | sos = game:GetService("RunService").Stepped:connect(function()
| |
| 1156 | pooted = pooted + 1 | |
| 1157 | if pooted >= expected + 1 then | |
| 1158 | sos:disconnect() | |
| 1159 | did = true | |
| 1160 | return | |
| 1161 | end | |
| 1162 | resetWelds(3, {
| |
| 1163 | RightHip, | |
| 1164 | LeftHip, | |
| 1165 | RootJoint, | |
| 1166 | Neck | |
| 1167 | }) | |
| 1168 | RightShoulder.C0 = RightShoulderC0 * CFrame.new(math.random(-20, 20) / 200, math.cos(time() * 30), math.random(-20, 20) / 200) * CFrame.fromEulerAnglesXYZ(math.sin(time() * 20) / 3, math.sin(time() * 20) / 5, math.rad(60) - math.cos(time() * 70) * 2) | |
| 1169 | LeftShoulder.C0 = LeftShoulderC0 * CFrame.new(math.random(-20, 20) / 200, math.cos(time() * 30), math.random(-20, 20) / 200) * CFrame.fromEulerAnglesXYZ(math.sin(time() * 20) / 3, math.sin(time() * 20) / 5, math.rad(-60) + math.sin(time() * 60) * 2) | |
| 1170 | RightHip.C0 = RightHipC0 * CFrame.fromEulerAnglesXYZ(math.rad(-18), math.rad(0), math.rad(-30)) | |
| 1171 | LeftHip.C0 = LeftHipC0 * CFrame.fromEulerAnglesXYZ(math.rad(-18), math.rad(0), math.rad(30)) | |
| 1172 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(20), math.rad(0), math.rad(0)) | |
| 1173 | RootJoint.C0 = RootJointC0 * CFrame.new(math.random(-20, 20) / 200, math.random(-20, 20) / 200, math.random(-20, 20) / 200) * CFrame.fromEulerAnglesXYZ(math.rad(80), math.rad(0), math.rad(0)) | |
| 1174 | w.C0 = w.C0 * CFrame.new(math.random(-20, 20) / 2000, math.random(-20, 20) / 2000, math.random(-20, 20) / 2000) * CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 1175 | C.CFrame = C.CFrame + Vector3.new(math.random(-20, 20) / 200, math.random(-20, 20) / 200, math.random(-20, 20) / 200) | |
| 1176 | ||
| 1177 | if pooted / 2 == math.floor(pooted / 2) then | |
| 1178 | p = cPlayer["Right Arm"]:clone() | |
| 1179 | p.Anchored = true | |
| 1180 | p.CanCollide = false | |
| 1181 | p.Parent = workspace | |
| 1182 | p.Transparency = .5 | |
| 1183 | game:GetService("Debris"):AddItem(p, .2)
| |
| 1184 | p = cPlayer["Left Arm"]:clone() | |
| 1185 | p.Anchored = true | |
| 1186 | p.CanCollide = false | |
| 1187 | p.Parent = workspace | |
| 1188 | p.Transparency = .5 | |
| 1189 | game:GetService("Debris"):AddItem(p, .2)
| |
| 1190 | ||
| 1191 | p = Instance.new("Part", workspace)
| |
| 1192 | p.Name = "ORB" | |
| 1193 | p.TopSurface = 0 | |
| 1194 | p.BottomSurface = 0 | |
| 1195 | p.formFactor = "Custom" | |
| 1196 | p.CFrame = cPlayer.Torso.CFrame + cPlayer.Torso.CFrame.lookVector * 3 + Vector3.new(math.random(-20, 20) / 15, math.random(-20, 20) / 15 - .8, math.random(-20, 20) / 15) | |
| 1197 | m = Instance.new("SpecialMesh", p)
| |
| 1198 | m.MeshType = "Sphere" | |
| 1199 | p.BrickColor = BrickColor:White() | |
| 1200 | p.Size = Vector3.new(.4, .4, .4) | |
| 1201 | p.CanCollide = false | |
| 1202 | p.Anchored = true | |
| 1203 | game:GetService("Debris"):AddItem(p, 5)
| |
| 1204 | coroutine.resume(coroutine.create(function(p) | |
| 1205 | for i = 1, 8 do | |
| 1206 | p.Mesh.Scale = p.Mesh.Scale + Vector3.new(1, 1, 1) | |
| 1207 | p.Transparency = i / 8 | |
| 1208 | wait() | |
| 1209 | end | |
| 1210 | p:Remove() | |
| 1211 | end), p) | |
| 1212 | ||
| 1213 | end | |
| 1214 | ||
| 1215 | print(":)")
| |
| 1216 | end) | |
| 1217 | while did == false do | |
| 1218 | wait() | |
| 1219 | end | |
| 1220 | wait(.5) | |
| 1221 | expected = 20 | |
| 1222 | did = false | |
| 1223 | pooted = 0 | |
| 1224 | workspace.CurrentCamera.CameraType = "Follow" | |
| 1225 | sos = game:GetService("RunService").Stepped:connect(function()
| |
| 1226 | pooted = pooted + 1 | |
| 1227 | if pooted >= expected + 1 then | |
| 1228 | sos:disconnect() | |
| 1229 | did = true | |
| 1230 | return | |
| 1231 | end | |
| 1232 | resetWelds(3, {
| |
| 1233 | Neck, | |
| 1234 | RootJoint, | |
| 1235 | RightHip, | |
| 1236 | LeftHip | |
| 1237 | }) | |
| 1238 | RightShoulder.C0 = RightShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(2 * pooted), math.rad(0), math.rad(5 * pooted)) | |
| 1239 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(-9 * pooted)) | |
| 1240 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(-2)) | |
| 1241 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(4 * pooted)) | |
| 1242 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(2), math.rad(0), math.rad(2)) | |
| 1243 | RootJoint.C0 = RootJoint.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1244 | w.C0 = w.C0 * CFrame.new(0, 0.03, .03) * CFrame.fromEulerAnglesXYZ(math.rad(2), math.rad(2), math.rad(0)) | |
| 1245 | print(":)")
| |
| 1246 | end) | |
| 1247 | while did == false do | |
| 1248 | wait() | |
| 1249 | end | |
| 1250 | wait(2) | |
| 1251 | expected = 5 | |
| 1252 | did = false | |
| 1253 | pooted = 0 | |
| 1254 | workspace.CurrentCamera.CameraType = "Follow" | |
| 1255 | w.Parent = nil | |
| 1256 | bodypos.position = cPlayer.Torso.Position - Vector3.new(0, 1, 0) | |
| 1257 | poo = cPlayer.Torso.CFrame.lookVector | |
| 1258 | cPlayer.Torso.CFrame = CFrame.new(cPlayer.Torso.Position, cPlayer.Torso.Position + C.CFrame.lookVector * 50) | |
| 1259 | bodypos.Parent = cPlayer.Torso | |
| 1260 | sos = game:GetService("RunService").Stepped:connect(function()
| |
| 1261 | pooted = pooted + 1 | |
| 1262 | if pooted >= expected + 1 then | |
| 1263 | sos:disconnect() | |
| 1264 | did = true | |
| 1265 | return | |
| 1266 | end | |
| 1267 | resetWelds(3, {})
| |
| 1268 | RightShoulder.C0 = RightShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(80 - pooted * 35)) | |
| 1269 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(10), math.rad(0), math.rad(-190 + pooted * 28)) | |
| 1270 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(6), math.rad(0), math.rad(-80 + pooted * 4)) | |
| 1271 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(8), math.rad(0), math.rad(84 - pooted * 4)) | |
| 1272 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(20 + pooted * 10), math.rad(0), math.rad(0)) | |
| 1273 | RootJoint.C0 = RootJoint.C0 * CFrame.new(0, 0, -pooted * .25) * CFrame.fromEulerAnglesXYZ(math.rad(-20 + pooted * 9), math.rad(0), math.rad(0)) | |
| 1274 | print(":)")
| |
| 1275 | end) | |
| 1276 | while did == false do | |
| 1277 | wait() | |
| 1278 | end | |
| 1279 | wait(.7) | |
| 1280 | expected = 5 | |
| 1281 | did = false | |
| 1282 | pooted = 0 | |
| 1283 | sos = game:GetService("RunService").Stepped:connect(function()
| |
| 1284 | pooted = pooted + 1 | |
| 1285 | if pooted >= expected + 1 then | |
| 1286 | sos:disconnect() | |
| 1287 | did = true | |
| 1288 | return | |
| 1289 | end | |
| 1290 | resetWelds(3, {})
| |
| 1291 | RightShoulder.C0 = RightShoulder.C0 * CFrame.new(0, 0.05 * pooted, 0) * CFrame.fromEulerAnglesXYZ(math.rad(pooted * 2), math.rad(0), math.rad(pooted * 6)) | |
| 1292 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(pooted * 2), math.rad(0), math.rad(-pooted * 6)) | |
| 1293 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-pooted * 2), math.rad(0), math.rad(-57 + pooted * 20)) | |
| 1294 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-pooted * 2), math.rad(0), math.rad(57 - pooted * 20)) | |
| 1295 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(pooted * 4), math.rad(0), math.rad(0)) | |
| 1296 | RootJoint.C0 = RootJoint.C0 * CFrame.new(0, 0, -.1 * pooted) * CFrame.fromEulerAnglesXYZ(math.rad(-57 + pooted * 20), math.rad(0), math.rad(0)) | |
| 1297 | print(":(")
| |
| 1298 | end) | |
| 1299 | while did == false do | |
| 1300 | wait() | |
| 1301 | end | |
| 1302 | wait(.2) | |
| 1303 | expected = 10 | |
| 1304 | did = false | |
| 1305 | pooted = 0 | |
| 1306 | workspace.CurrentCamera.CameraType = "Follow" | |
| 1307 | g = Instance.new("BodyGyro")
| |
| 1308 | g.Parent = cPlayer.Torso | |
| 1309 | sos = game:GetService("RunService").Stepped:connect(function()
| |
| 1310 | pooted = pooted + 1 | |
| 1311 | if pooted >= expected + 1 then | |
| 1312 | sos:disconnect() | |
| 1313 | did = true | |
| 1314 | return | |
| 1315 | end | |
| 1316 | RightShoulder.C0 = RightShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(-2), math.rad(0), math.rad(-2)) | |
| 1317 | LeftShoulder.C0 = LeftShoulder.C0 * CFrame.new(0, 0, 0) * CFrame.fromEulerAnglesXYZ(math.rad(1), math.rad(0), math.rad(2)) | |
| 1318 | RightHip.C0 = RightHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(1), math.rad(0), math.rad(-4)) | |
| 1319 | LeftHip.C0 = LeftHip.C0 * CFrame.fromEulerAnglesXYZ(math.rad(1), math.rad(0), math.rad(4)) | |
| 1320 | Neck.C0 = Neck.C0 * CFrame.fromEulerAnglesXYZ(math.rad(-7), math.rad(0), math.rad(0)) | |
| 1321 | RootJoint.C0 = RootJoint.C0 * CFrame.new(0, 0, .05) * CFrame.fromEulerAnglesXYZ(math.rad(0), math.rad(0), math.rad(0)) | |
| 1322 | if pooted >= 2 then | |
| 1323 | bodypos.position = bodypos.position + Vector3.new(0, 12, 0) - dir * 5 | |
| 1324 | cPlayer.Torso.CFrame = cPlayer.Torso.CFrame + Vector3.new(0, 12, 0) - dir * 5 | |
| 1325 | end | |
| 1326 | print(":(")
| |
| 1327 | end) | |
| 1328 | while did == false do | |
| 1329 | wait() | |
| 1330 | end | |
| 1331 | wait(.2) | |
| 1332 | bodypos:Remove() | |
| 1333 | wait(.5) | |
| 1334 | ||
| 1335 | e = Instance.new("Explosion")
| |
| 1336 | e.BlastRadius = 30 | |
| 1337 | e.Position = C.Position | |
| 1338 | e.BlastPressure = e.BlastPressure * 2.5 | |
| 1339 | e.Parent = workspace | |
| 1340 | s = Instance.new("Sound", C)
| |
| 1341 | s.SoundId = "rbxassetid://258057783" | |
| 1342 | s.Volume = 1 | |
| 1343 | s:Play() | |
| 1344 | Instance.new("DistortionSoundEffect", s).Level = 1
| |
| 1345 | g:Remove() | |
| 1346 | --dun | |
| 1347 | nubhit.Torso.Anchored = false | |
| 1348 | Hum.PlatformStand = false | |
| 1349 | C.Anchored = true | |
| 1350 | ||
| 1351 | coroutine.resume(coroutine.create(function(t) | |
| 1352 | wait(3) | |
| 1353 | p = Instance.new("Sound")
| |
| 1354 | p.SoundId = "http://www.roblox.com/asset/?id=154677261" | |
| 1355 | p.Parent = t | |
| 1356 | p.Volume = 1 | |
| 1357 | p:Play() | |
| 1358 | end), C) | |
| 1359 | game:GetService("Debris"):AddItem(LOL, 5)
| |
| 1360 | end | |
| 1361 | resetWelds(3, {})
| |
| 1362 | workspace.CurrentCamera.CameraType = "Custom" | |
| 1363 | Hum.WalkSpeed = 16 | |
| 1364 | Hum.Name = "Humanoid" | |
| 1365 | bodypos:Remove() | |
| 1366 | partpos:Remove() | |
| 1367 | Anim.Parent = nil | |
| 1368 | wait(.1) | |
| 1369 | Anim.Disabled = false | |
| 1370 | Anim.Parent = cPlayer | |
| 1371 | deb = true | |
| 1372 | end | |
| 1373 | ||
| 1374 | Tool = Instance.new("HopperBin")
| |
| 1375 | Tool.Name = "ROAD ROLLER DA" | |
| 1376 | Tool.Parent = game.Players.LocalPlayer.Backpack | |
| 1377 | Tool.Selected:connect(function(mouse) | |
| 1378 | mouse.Button1Down:connect(function() | |
| 1379 | doitdocdoit() | |
| 1380 | end) | |
| 1381 | end) | |
| 1382 | ||
| 1383 | end |