SHOW:
|
|
- or go back to the newest paste.
| 1 | --WARNING THIS SCRIPT CAN DESTROY ALL | |
| 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 | |
| 6 | print("Absolution by Divcore")
| |
| 7 | local RealPlayer = RealPlayer | |
| 8 | script.Parent = RealPlayer.Character | |
| 9 | ||
| 10 | --Fake event to make stuff like Mouse.KeyDown work | |
| 11 | local Disconnect_Function = function(this) | |
| 12 | this[1].Functions[this[2]] = nil | |
| 13 | end | |
| 14 | local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
| |
| 15 | local FakeEvent_Metatable = {__index={
| |
| 16 | Connect = function(this,f) | |
| 17 | local i = tostring(math.random(0,10000)) | |
| 18 | while this.Functions[i] do | |
| 19 | i = tostring(math.random(0,10000)) | |
| 20 | end | |
| 21 | this.Functions[i] = f | |
| 22 | return setmetatable({this,i},Disconnect_Metatable)
| |
| 23 | end | |
| 24 | }} | |
| 25 | FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect | |
| 26 | local function fakeEvent() | |
| 27 | return setmetatable({Functions={}},FakeEvent_Metatable)
| |
| 28 | end | |
| 29 | ||
| 30 | --Creating fake input objects with fake variables | |
| 31 | local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
| |
| 32 | FakeMouse.keyUp = FakeMouse.KeyUp | |
| 33 | FakeMouse.keyDown = FakeMouse.KeyDown | |
| 34 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 35 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 36 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 37 | end} | |
| 38 | --Merged 2 functions into one by checking amount of arguments | |
| 39 | CAS.UnbindAction = CAS.BindAction | |
| 40 | ||
| 41 | --This function will trigger the events that have been :Connect()'ed | |
| 42 | local function TriggerEvent(self,ev,...) | |
| 43 | for _,f in pairs(self[ev].Functions) do | |
| 44 | f(...) | |
| 45 | end | |
| 46 | end | |
| 47 | FakeMouse.TriggerEvent = TriggerEvent | |
| 48 | UIS.TriggerEvent = TriggerEvent | |
| 49 | ||
| 50 | --Client communication | |
| 51 | local Event = Instance.new("RemoteEvent")
| |
| 52 | Event.Name = "UserInput_Event" | |
| 53 | Event.OnServerEvent:Connect(function(plr,io) | |
| 54 | if plr~=RealPlayer then return end | |
| 55 | FakeMouse.Target = io.Target | |
| 56 | FakeMouse.Hit = io.Hit | |
| 57 | if not io.isMouse then | |
| 58 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 59 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 60 | return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up") | |
| 61 | end | |
| 62 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
| 63 | return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up") | |
| 64 | end | |
| 65 | for _,t in pairs(CAS.Actions) do | |
| 66 | for _,k in pairs(t.Keys) do | |
| 67 | if k==io.KeyCode then | |
| 68 | t.Function(t.Name,io.UserInputState,io) | |
| 69 | end | |
| 70 | end | |
| 71 | end | |
| 72 | FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 73 | UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 74 | end | |
| 75 | end) | |
| 76 | Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
| |
| 77 | local Mouse = owner:GetMouse() | |
| 78 | local UIS = game:GetService("UserInputService")
| |
| 79 | local input = function(io,RobloxHandled) | |
| 80 | if RobloxHandled then return end | |
| 81 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 82 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 83 | end | |
| 84 | UIS.InputBegan:Connect(input) | |
| 85 | UIS.InputEnded:Connect(input) | |
| 86 | ||
| 87 | local h,t | |
| 88 | --Give the server mouse data every second frame, but only if the values changed | |
| 89 | --If player is not moving their mouse, client won't fire events | |
| 90 | local HB = game:GetService("RunService").Heartbeat
| |
| 91 | while true do | |
| 92 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 93 | h,t=Mouse.Hit,Mouse.Target | |
| 94 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 95 | end | |
| 96 | --Wait 2 frames | |
| 97 | for i=1,2 do | |
| 98 | HB:Wait() | |
| 99 | end | |
| 100 | end]==],script) | |
| 101 | ||
| 102 | ----Sandboxed game object that allows the usage of client-side methods and services | |
| 103 | --Real game object | |
| 104 | local RealGame = game | |
| 105 | ||
| 106 | --Metatable for fake service | |
| 107 | local FakeService_Metatable = {
| |
| 108 | __index = function(self,k) | |
| 109 | local s = rawget(self,"_RealService") | |
| 110 | if s then | |
| 111 | return typeof(s[k])=="function" | |
| 112 | and function(_,...)return s[k](s,...)end or s[k] | |
| 113 | end | |
| 114 | end, | |
| 115 | __newindex = function(self,k,v) | |
| 116 | local s = rawget(self,"_RealService") | |
| 117 | if s then s[k]=v end | |
| 118 | end | |
| 119 | } | |
| 120 | local function FakeService(t,RealService) | |
| 121 | t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService | |
| 122 | return setmetatable(t,FakeService_Metatable) | |
| 123 | end | |
| 124 | ||
| 125 | --Fake game object | |
| 126 | local FakeGame = {
| |
| 127 | GetService = function(self,s) | |
| 128 | return rawget(self,s) or RealGame:GetService(s) | |
| 129 | end, | |
| 130 | Players = FakeService({
| |
| 131 | LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
| |
| 132 | },"Players"), | |
| 133 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 134 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 135 | RunService = FakeService({
| |
| 136 | _btrs = {},
| |
| 137 | RenderStepped = RealGame:GetService("RunService").Heartbeat,
| |
| 138 | BindToRenderStep = function(self,name,_,fun) | |
| 139 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
| 140 | end, | |
| 141 | UnbindFromRenderStep = function(self,name) | |
| 142 | self._btrs[name]:Disconnect() | |
| 143 | end, | |
| 144 | },"RunService") | |
| 145 | } | |
| 146 | rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer) | |
| 147 | FakeGame.service = FakeGame.GetService | |
| 148 | FakeService(FakeGame,game) | |
| 149 | --Changing owner to fake player object to support owner:GetMouse() | |
| 150 | game,owner = FakeGame,FakeGame.Players.LocalPlayer | |
| 151 | end | |
| 152 | ||
| 153 | ||
| 154 | --Converted with ttyyuu12345's model to script plugin v4 | |
| 155 | function sandbox(var,func) | |
| 156 | local env = getfenv(func) | |
| 157 | local newenv = setmetatable({},{
| |
| 158 | __index = function(self,k) | |
| 159 | if k=="script" then | |
| 160 | return var | |
| 161 | else | |
| 162 | return env[k] | |
| 163 | end | |
| 164 | end, | |
| 165 | }) | |
| 166 | setfenv(func,newenv) | |
| 167 | return func | |
| 168 | end | |
| 169 | cors = {}
| |
| 170 | mas = Instance.new("Model",game:GetService("Lighting"))
| |
| 171 | Tool0 = Instance.new("Tool")
| |
| 172 | Part1 = Instance.new("Part")
| |
| 173 | BlockMesh2 = Instance.new("BlockMesh")
| |
| 174 | Weld3 = Instance.new("Weld")
| |
| 175 | Part4 = Instance.new("Part")
| |
| 176 | SpecialMesh5 = Instance.new("SpecialMesh")
| |
| 177 | Weld6 = Instance.new("Weld")
| |
| 178 | WedgePart7 = Instance.new("WedgePart")
| |
| 179 | SpecialMesh8 = Instance.new("SpecialMesh")
| |
| 180 | Weld9 = Instance.new("Weld")
| |
| 181 | Animation10 = Instance.new("Animation")
| |
| 182 | WedgePart11 = Instance.new("WedgePart")
| |
| 183 | SpecialMesh12 = Instance.new("SpecialMesh")
| |
| 184 | Weld13 = Instance.new("Weld")
| |
| 185 | Script14 = Instance.new("Script")
| |
| 186 | Part15 = Instance.new("Part")
| |
| 187 | SpecialMesh16 = Instance.new("SpecialMesh")
| |
| 188 | Part17 = Instance.new("Part")
| |
| 189 | BlockMesh18 = Instance.new("BlockMesh")
| |
| 190 | Weld19 = Instance.new("Weld")
| |
| 191 | Part20 = Instance.new("Part")
| |
| 192 | SpecialMesh21 = Instance.new("SpecialMesh")
| |
| 193 | Weld22 = Instance.new("Weld")
| |
| 194 | Part23 = Instance.new("Part")
| |
| 195 | SpecialMesh24 = Instance.new("SpecialMesh")
| |
| 196 | Weld25 = Instance.new("Weld")
| |
| 197 | Part26 = Instance.new("Part")
| |
| 198 | SpecialMesh27 = Instance.new("SpecialMesh")
| |
| 199 | Weld28 = Instance.new("Weld")
| |
| 200 | Part29 = Instance.new("Part")
| |
| 201 | BlockMesh30 = Instance.new("BlockMesh")
| |
| 202 | Weld31 = Instance.new("Weld")
| |
| 203 | Part32 = Instance.new("Part")
| |
| 204 | SpecialMesh33 = Instance.new("SpecialMesh")
| |
| 205 | Weld34 = Instance.new("Weld")
| |
| 206 | Part35 = Instance.new("Part")
| |
| 207 | SpecialMesh36 = Instance.new("SpecialMesh")
| |
| 208 | Weld37 = Instance.new("Weld")
| |
| 209 | Part38 = Instance.new("Part")
| |
| 210 | BlockMesh39 = Instance.new("BlockMesh")
| |
| 211 | Weld40 = Instance.new("Weld")
| |
| 212 | Part41 = Instance.new("Part")
| |
| 213 | BlockMesh42 = Instance.new("BlockMesh")
| |
| 214 | Weld43 = Instance.new("Weld")
| |
| 215 | Part44 = Instance.new("Part")
| |
| 216 | BlockMesh45 = Instance.new("BlockMesh")
| |
| 217 | Weld46 = Instance.new("Weld")
| |
| 218 | Part47 = Instance.new("Part")
| |
| 219 | SpecialMesh48 = Instance.new("SpecialMesh")
| |
| 220 | Weld49 = Instance.new("Weld")
| |
| 221 | Part50 = Instance.new("Part")
| |
| 222 | BlockMesh51 = Instance.new("BlockMesh")
| |
| 223 | Weld52 = Instance.new("Weld")
| |
| 224 | Part53 = Instance.new("Part")
| |
| 225 | BlockMesh54 = Instance.new("BlockMesh")
| |
| 226 | Weld55 = Instance.new("Weld")
| |
| 227 | Part56 = Instance.new("Part")
| |
| 228 | BlockMesh57 = Instance.new("BlockMesh")
| |
| 229 | Weld58 = Instance.new("Weld")
| |
| 230 | Part59 = Instance.new("Part")
| |
| 231 | BlockMesh60 = Instance.new("BlockMesh")
| |
| 232 | Weld61 = Instance.new("Weld")
| |
| 233 | Part62 = Instance.new("Part")
| |
| 234 | BlockMesh63 = Instance.new("BlockMesh")
| |
| 235 | Weld64 = Instance.new("Weld")
| |
| 236 | Part65 = Instance.new("Part")
| |
| 237 | Sound66 = Instance.new("Sound")
| |
| 238 | Script67 = Instance.new("Script")
| |
| 239 | Part68 = Instance.new("Part")
| |
| 240 | ParticleEmitter69 = Instance.new("ParticleEmitter")
| |
| 241 | Part70 = Instance.new("Part")
| |
| 242 | ParticleEmitter71 = Instance.new("ParticleEmitter")
| |
| 243 | Part72 = Instance.new("Part")
| |
| 244 | ParticleEmitter73 = Instance.new("ParticleEmitter")
| |
| 245 | Part74 = Instance.new("Part")
| |
| 246 | ParticleEmitter75 = Instance.new("ParticleEmitter")
| |
| 247 | Part76 = Instance.new("Part")
| |
| 248 | ParticleEmitter77 = Instance.new("ParticleEmitter")
| |
| 249 | Part78 = Instance.new("Part")
| |
| 250 | ParticleEmitter79 = Instance.new("ParticleEmitter")
| |
| 251 | Part80 = Instance.new("Part")
| |
| 252 | ParticleEmitter81 = Instance.new("ParticleEmitter")
| |
| 253 | Part82 = Instance.new("Part")
| |
| 254 | ParticleEmitter83 = Instance.new("ParticleEmitter")
| |
| 255 | Part84 = Instance.new("Part")
| |
| 256 | ParticleEmitter85 = Instance.new("ParticleEmitter")
| |
| 257 | Part86 = Instance.new("Part")
| |
| 258 | ParticleEmitter87 = Instance.new("ParticleEmitter")
| |
| 259 | Animation88 = Instance.new("Animation")
| |
| 260 | Part89 = Instance.new("Part")
| |
| 261 | Script90 = Instance.new("Script")
| |
| 262 | LocalScript91 = Instance.new("LocalScript")
| |
| 263 | ObjectValue92 = Instance.new("ObjectValue")
| |
| 264 | BoolValue93 = Instance.new("BoolValue")
| |
| 265 | BoolValue94 = Instance.new("BoolValue")
| |
| 266 | BoolValue95 = Instance.new("BoolValue")
| |
| 267 | Animation96 = Instance.new("Animation")
| |
| 268 | LocalScript97 = Instance.new("LocalScript")
| |
| 269 | Tool0.Name = "Absolution" | |
| 270 | Tool0.Parent = mas | |
| 271 | Part1.Parent = Tool0 | |
| 272 | Part1.CFrame = CFrame.new(117.964905, 6.19432497, 113.233757, -0.992436945, 0.122787774, 0.00128565973, 0.122777924, 0.992420852, -0.00597485993, -0.00200955453, -0.00577182043, -0.999981344) | |
| 273 | Part1.Orientation = Vector3.new(0.340000004, 179.929993, 7.05000019) | |
| 274 | Part1.Position = Vector3.new(117.964905, 6.19432497, 113.233757) | |
| 275 | Part1.Rotation = Vector3.new(179.660004, 0.0700000003, -172.949997) | |
| 276 | Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
| 277 | Part1.Size = Vector3.new(1.2988317, 1.23209286, 0.513372123) | |
| 278 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
| 279 | Part1.BrickColor = BrickColor.new("Really black")
| |
| 280 | Part1.CanCollide = false | |
| 281 | Part1.Material = Enum.Material.Neon | |
| 282 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
| 283 | Part1.brickColor = BrickColor.new("Really black")
| |
| 284 | BlockMesh2.Parent = Part1 | |
| 285 | BlockMesh2.Scale = Vector3.new(0.400000006, 1, 0.400000006) | |
| 286 | Weld3.Name = "Part_Weld" | |
| 287 | Weld3.Parent = Part1 | |
| 288 | Weld3.C0 = CFrame.new(-8.40273666, -35.9191246, -34.6527061, -1.77821063e-10, 0.992886961, 0.119063012, -1.46926671e-09, -0.119063012, 0.992886961, 1, 1.59595731e-12, 1.47997492e-09) | |
| 289 | Weld3.C1 = CFrame.new(-34.6579704, -19.6207619, 34.4475594, 1, -4.10709617e-05, 9.00123541e-06, -3.82823673e-05, -0.800855637, 0.598857403, -1.73869594e-05, -0.598857403, -0.800855637) | |
| 290 | Weld3.Part0 = Part1 | |
| 291 | Weld3.Part1 = Part15 | |
| 292 | Weld3.part1 = Part15 | |
| 293 | Part4.Parent = Tool0 | |
| 294 | Part4.CFrame = CFrame.new(115.792717, 7.02691936, 113.226051, 0.00129219447, -0.354906023, 0.934900939, -0.00593220443, 0.934882522, 0.354907185, -0.999981582, -0.00600463245, -0.000897324819) | |
| 295 | Part4.Orientation = Vector3.new(-20.7900009, 90.0500031, -0.360000014) | |
| 296 | Part4.Position = Vector3.new(115.792717, 7.02691936, 113.226051) | |
| 297 | Part4.Rotation = Vector3.new(-90.1399994, 69.2099991, 89.7900009) | |
| 298 | Part4.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
| 299 | Part4.Size = Vector3.new(0.513372123, 0.308023304, 0.770058215) | |
| 300 | Part4.BottomSurface = Enum.SurfaceType.Smooth | |
| 301 | Part4.BrickColor = BrickColor.new("Royal purple")
| |
| 302 | Part4.CanCollide = false | |
| 303 | Part4.Material = Enum.Material.Neon | |
| 304 | Part4.TopSurface = Enum.SurfaceType.Smooth | |
| 305 | Part4.brickColor = BrickColor.new("Royal purple")
| |
| 306 | SpecialMesh5.Parent = Part4 | |
| 307 | SpecialMesh5.Scale = Vector3.new(0.400000006, 0.600000024, 0.699999928) | |
| 308 | SpecialMesh5.MeshType = Enum.MeshType.Wedge | |
| 309 | Weld6.Name = "Part_Weld" | |
| 310 | Weld6.Parent = Part4 | |
| 311 | Weld6.C0 = CFrame.new(-34.6542091, -37.2338791, -7.60867548, 1, -6.37466928e-06, 4.26825172e-05, -3.75621021e-05, 0.358411252, 0.933563769, -2.12490559e-05, -0.933563769, 0.358411252) | |
| 312 | Weld6.C1 = CFrame.new(4.69595718, -38.289753, -34.6526833, -4.37113883e-08, 0.961261749, -0.27563718, 0, 0.27563718, 0.961261749, 1, 4.20180868e-08, -1.2048484e-08) | |
| 313 | Weld6.Part0 = Part4 | |
| 314 | Weld6.Part1 = Part17 | |
| 315 | Weld6.part1 = Part17 | |
| 316 | WedgePart7.Parent = Tool0 | |
| 317 | WedgePart7.CFrame = CFrame.new(118.519241, 5.19977379, 113.240578, 0.00125502818, -0.00372136571, -0.999996841, -0.00600526482, -0.999979496, 0.00371364108, -0.999981225, 0.00600058353, -0.00127734977) | |
| 318 | WedgePart7.Orientation = Vector3.new(-0.209999993, -90.0699997, -179.660004) | |
| 319 | WedgePart7.Position = Vector3.new(118.519241, 5.19977379, 113.240578) | |
| 320 | WedgePart7.Rotation = Vector3.new(-108.980003, -89.8600006, 71.3600006) | |
| 321 | WedgePart7.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
| 322 | WedgePart7.Size = Vector3.new(0.513372123, 2.05348849, 1.02674425) | |
| 323 | WedgePart7.BottomSurface = Enum.SurfaceType.Smooth | |
| 324 | WedgePart7.BrickColor = BrickColor.new("Royal purple")
| |
| 325 | WedgePart7.CanCollide = false | |
| 326 | WedgePart7.Material = Enum.Material.Neon | |
| 327 | WedgePart7.brickColor = BrickColor.new("Royal purple")
| |
| 328 | SpecialMesh8.Parent = WedgePart7 | |
| 329 | SpecialMesh8.Scale = Vector3.new(0.499999911, 0.899999976, 0.699999928) | |
| 330 | SpecialMesh8.MeshType = Enum.MeshType.Wedge | |
| 331 | Weld9.Name = "Wedge_Weld" | |
| 332 | Weld9.Parent = WedgePart7 | |
| 333 | Weld9.C0 = CFrame.new(-34.6515579, 35.6727676, -3.50611639, 1, 3.05171125e-05, -3.05180438e-05, -3.05171125e-05, -3.05180438e-05, -1, -3.05180438e-05, 1, -3.05171125e-05) | |
| 334 | Weld9.C1 = CFrame.new(34.6517448, -38.5217896, -3.50637627, -1, -9.15532e-05, 3.05161811e-05, 3.05189751e-05, -3.05161811e-05, 1, -9.15522687e-05, 1, 3.05189751e-05) | |
| 335 | Weld9.Part0 = WedgePart7 | |
| 336 | Weld9.Part1 = WedgePart11 | |
| 337 | Weld9.part1 = WedgePart11 | |
| 338 | Animation10.Name = "EquipAnim5" | |
| 339 | Animation10.Parent = Tool0 | |
| 340 | Animation10.AnimationId = "http://www.roblox.com/Asset?ID=4553912537" | |
| 341 | WedgePart11.Parent = Tool0 | |
| 342 | WedgePart11.CFrame = CFrame.new(118.529823, 8.04895115, 113.223511, -0.00119399233, 0.0037823997, -0.999996662, 0.00600503432, 0.999979258, 0.00377504062, 0.999981284, -0.00600050576, -0.00121668109) | |
| 343 | WedgePart11.Orientation = Vector3.new(-0.219999999, -90.0699997, 0.340000004) | |
| 344 | WedgePart11.Position = Vector3.new(118.529823, 8.04895115, 113.223511) | |
| 345 | WedgePart11.Rotation = Vector3.new(-107.860001, -89.8499985, -107.519997) | |
| 346 | WedgePart11.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
| 347 | WedgePart11.Size = Vector3.new(0.513372123, 2.05348849, 1.02674425) | |
| 348 | WedgePart11.BottomSurface = Enum.SurfaceType.Smooth | |
| 349 | WedgePart11.BrickColor = BrickColor.new("Royal purple")
| |
| 350 | WedgePart11.CanCollide = false | |
| 351 | WedgePart11.Material = Enum.Material.Neon | |
| 352 | WedgePart11.brickColor = BrickColor.new("Royal purple")
| |
| 353 | SpecialMesh12.Parent = WedgePart11 | |
| 354 | SpecialMesh12.Scale = Vector3.new(0.499999911, 0.899999976, 0.699999928) | |
| 355 | SpecialMesh12.MeshType = Enum.MeshType.Wedge | |
| 356 | Weld13.Name = "Part_Weld" | |
| 357 | Weld13.Parent = WedgePart11 | |
| 358 | Weld13.C0 = CFrame.new(34.6517448, -38.5217896, -3.50637627, -1, -9.15532e-05, 3.05161811e-05, 3.05189751e-05, -3.05161811e-05, 1, -9.15522687e-05, 1, 3.05189751e-05) | |
| 359 | Weld13.C1 = CFrame.new(-8.40273666, -35.9191246, -34.6527061, -1.77821063e-10, 0.992886961, 0.119063012, -1.46926671e-09, -0.119063012, 0.992886961, 1, 1.59595731e-12, 1.47997492e-09) | |
| 360 | Weld13.Part0 = WedgePart11 | |
| 361 | Weld13.Part1 = Part1 | |
| 362 | Weld13.part1 = Part1 | |
| 363 | Script14.Name = "*Fixed* PulloutSound*" | |
| 364 | Script14.Parent = Tool0 | |
| 365 | table.insert(cors,sandbox(Script14,function() | |
| 366 | local Tool = script.Parent; | |
| 367 | enabled = true | |
| 368 | function onActivated() | |
| 369 | if not enabled then | |
| 370 | return | |
| 371 | end | |
| 372 | enabled = false | |
| 373 | local h = Tool.Parent:FindFirstChild("Humanoid")
| |
| 374 | if (h ~= nil) then | |
| 375 | if (h.MaxHealth > h.Health + 0) then | |
| 376 | h.Health = h.Health + 0 | |
| 377 | else | |
| 378 | h.Health = h.MaxHealth | |
| 379 | end | |
| 380 | end | |
| 381 | enabled = true | |
| 382 | end | |
| 383 | function onEquipped() | |
| 384 | Wait(0.7) | |
| 385 | Tool.Handle.UnsheathSound:play() | |
| 386 | end | |
| 387 | script.Parent.Activated:connect(onActivated) | |
| 388 | script.Parent.Equipped:connect(onEquipped) | |
| 389 | end)) | |
| 390 | Part15.Parent = Tool0 | |
| 391 | Part15.CFrame = CFrame.new(117.126915, 8.87122154, 113.211571, 0.00132676435, 0.803100169, 0.595851004, -0.00596601423, 0.595847309, -0.803081632, -0.999981344, -0.00248935563, 0.00558185438) | |
| 392 | Part15.Orientation = Vector3.new(53.4300003, 89.4599991, -0.569999993) | |
| 393 | Part15.Position = Vector3.new(117.126915, 8.87122154, 113.211571) | |
| 394 | Part15.Rotation = Vector3.new(89.5999985, 36.5699997, -89.9100037) | |
| 395 | Part15.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
| 396 | Part15.Size = Vector3.new(0.513372123, 0.739255846, 0.816261768) | |
| 397 | Part15.BottomSurface = Enum.SurfaceType.Smooth | |
| 398 | Part15.BrickColor = BrickColor.new("Royal purple")
| |
| 399 | Part15.CanCollide = false | |
| 400 | Part15.Material = Enum.Material.Neon | |
| 401 | Part15.TopSurface = Enum.SurfaceType.Smooth | |
| 402 | Part15.brickColor = BrickColor.new("Royal purple")
| |
| 403 | SpecialMesh16.Parent = Part15 | |
| 404 | SpecialMesh16.Scale = Vector3.new(0.300000012, 0.600000024, 0.699999988) | |
| 405 | SpecialMesh16.MeshType = Enum.MeshType.Wedge | |
| 406 | Part17.Parent = Tool0 | |
| 407 | Part17.CFrame = CFrame.new(115.996613, 7.63828659, 113.222626, -0.962288141, -0.272028595, 0.00128561771, -0.272031367, 0.962269664, -0.0059748739, 0.000388225628, -0.00609927857, -0.999981344) | |
| 408 | Part17.Orientation = Vector3.new(0.340000004, 179.929993, -15.79) | |
| 409 | Part17.Position = Vector3.new(115.996613, 7.63828659, 113.222626) | |
| 410 | Part17.Rotation = Vector3.new(179.660004, 0.0700000003, 164.210007) | |
| 411 | Part17.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
| 412 | Part17.Size = Vector3.new(0.513372123, 1.48877931, 0.513372123) | |
| 413 | Part17.BottomSurface = Enum.SurfaceType.Smooth | |
| 414 | Part17.BrickColor = BrickColor.new("Really black")
| |
| 415 | Part17.CanCollide = false | |
| 416 | Part17.Material = Enum.Material.Granite | |
| 417 | Part17.TopSurface = Enum.SurfaceType.Smooth | |
| 418 | Part17.brickColor = BrickColor.new("Really black")
| |
| 419 | BlockMesh18.Parent = Part17 | |
| 420 | BlockMesh18.Scale = Vector3.new(0.400000006, 1, 0.400000006) | |
| 421 | Weld19.Name = "Part_Weld" | |
| 422 | Weld19.Parent = Part17 | |
| 423 | Weld19.C0 = CFrame.new(4.69595718, -38.289753, -34.6526833, -4.37113883e-08, 0.961261749, -0.27563718, 0, 0.27563718, 0.961261749, 1, 4.20180868e-08, -1.2048484e-08) | |
| 424 | Weld19.C1 = CFrame.new(-34.6542015, -38.1200256, -5.56331396, 1, -8.59976626e-06, 4.22903977e-05, -3.75621021e-05, 0.30906105, 0.951042175, -2.12490559e-05, -0.951042175, 0.30906105) | |
| 425 | Weld19.Part0 = Part17 | |
| 426 | Weld19.Part1 = Part20 | |
| 427 | Weld19.part1 = Part20 | |
| 428 | Part20.Parent = Tool0 | |
| 429 | Part20.CFrame = CFrame.new(115.546005, 7.51374197, 113.222816, 0.00129441812, -0.305490613, 0.952194035, -0.00593260489, 0.952175796, 0.305492818, -0.999981582, -0.00604442647, -0.000579841551) | |
| 430 | Part20.Orientation = Vector3.new(-17.7900009, 90.0299988, -0.360000014) | |
| 431 | Part20.Position = Vector3.new(115.546005, 7.51374197, 113.222816) | |
| 432 | Part20.Rotation = Vector3.new(-90.1100006, 72.2099991, 89.7600021) | |
| 433 | Part20.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
| 434 | Part20.Size = Vector3.new(0.513372123, 0.616046607, 1.07808149) | |
| 435 | Part20.BottomSurface = Enum.SurfaceType.Smooth | |
| 436 | Part20.BrickColor = BrickColor.new("Royal purple")
| |
| 437 | Part20.CanCollide = false | |
| 438 | Part20.Material = Enum.Material.Neon | |
| 439 | Part20.TopSurface = Enum.SurfaceType.Smooth | |
| 440 | Part20.brickColor = BrickColor.new("Royal purple")
| |
| 441 | SpecialMesh21.Parent = Part20 | |
| 442 | SpecialMesh21.Scale = Vector3.new(0.400000006, 0.600000024, 0.699999928) | |
| 443 | SpecialMesh21.MeshType = Enum.MeshType.Wedge | |
| 444 | Weld22.Name = "Part_Weld" | |
| 445 | Weld22.Parent = Part20 | |
| 446 | Weld22.C0 = CFrame.new(-34.6542015, -38.1200256, -5.56331396, 1, -8.59976626e-06, 4.22903977e-05, -3.75621021e-05, 0.30906105, 0.951042175, -2.12490559e-05, -0.951042175, 0.30906105) | |
| 447 | Weld22.C1 = CFrame.new(-34.652771, -18.5328674, 34.9624519, 1, -4.10709617e-05, 9.00123541e-06, -3.82823673e-05, -0.800855637, 0.598857403, -1.73869594e-05, -0.598857403, -0.800855637) | |
| 448 | Weld22.Part0 = Part20 | |
| 449 | Weld22.Part1 = Part23 | |
| 450 | Weld22.part1 = Part23 | |
| 451 | Part23.Parent = Tool0 | |
| 452 | Part23.CFrame = CFrame.new(115.946442, 8.63634396, 113.216606, 0.00132676412, 0.803095996, 0.595848083, -0.00596601469, 0.595844388, -0.803077698, -0.999981344, -0.00248934375, 0.00558182737) | |
| 453 | Part23.Orientation = Vector3.new(53.4300003, 89.4599991, -0.569999993) | |
| 454 | Part23.Position = Vector3.new(115.946442, 8.63634396, 113.216606) | |
| 455 | Part23.Rotation = Vector3.new(89.5999985, 36.5699997, -89.9100037) | |
| 456 | Part23.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
| 457 | Part23.Size = Vector3.new(0.513372123, 0.739255846, 1.05241299) | |
| 458 | Part23.BottomSurface = Enum.SurfaceType.Smooth | |
| 459 | Part23.BrickColor = BrickColor.new("Royal purple")
| |
| 460 | Part23.CanCollide = false | |
| 461 | Part23.Material = Enum.Material.Neon | |
| 462 | Part23.TopSurface = Enum.SurfaceType.Smooth | |
| 463 | Part23.brickColor = BrickColor.new("Royal purple")
| |
| 464 | SpecialMesh24.Parent = Part23 | |
| 465 | SpecialMesh24.Scale = Vector3.new(0.300000012, 0.600000024, 0.699999988) | |
| 466 | SpecialMesh24.MeshType = Enum.MeshType.Wedge | |
| 467 | Weld25.Name = "Part_Weld" | |
| 468 | Weld25.Parent = Part23 | |
| 469 | Weld25.C0 = CFrame.new(-34.652771, -18.5328674, 34.9624519, 1, -4.10709617e-05, 9.00123541e-06, -3.82823673e-05, -0.800855637, 0.598857403, -1.73869594e-05, -0.598857403, -0.800855637) | |
| 470 | Weld25.C1 = CFrame.new(-34.6542549, -38.3037071, -7.42219925, 1, -6.37466928e-06, 4.26825172e-05, -3.75621021e-05, 0.358411252, 0.933563769, -2.12490559e-05, -0.933563769, 0.358411252) | |
| 471 | Weld25.Part0 = Part23 | |
| 472 | Weld25.Part1 = Part26 | |
| 473 | Weld25.part1 = Part26 | |
| 474 | Part26.Parent = Tool0 | |
| 475 | Part26.CFrame = CFrame.new(115.238686, 7.96090317, 113.219742, 0.00129219447, -0.354906023, 0.934901118, -0.00593220443, 0.9348827, 0.354907215, -0.999981582, -0.00600463338, -0.00089732476) | |
| 476 | Part26.Orientation = Vector3.new(-20.7900009, 90.0500031, -0.360000014) | |
| 477 | Part26.Position = Vector3.new(115.238686, 7.96090317, 113.219742) | |
| 478 | Part26.Rotation = Vector3.new(-90.1399994, 69.2099991, 89.7900009) | |
| 479 | Part26.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
| 480 | Part26.Size = Vector3.new(0.513372123, 0.616046607, 1.64279091) | |
| 481 | Part26.BottomSurface = Enum.SurfaceType.Smooth | |
| 482 | Part26.BrickColor = BrickColor.new("Royal purple")
| |
| 483 | Part26.CanCollide = false | |
| 484 | Part26.Material = Enum.Material.Neon | |
| 485 | Part26.TopSurface = Enum.SurfaceType.Smooth | |
| 486 | Part26.brickColor = BrickColor.new("Royal purple")
| |
| 487 | SpecialMesh27.Parent = Part26 | |
| 488 | SpecialMesh27.Scale = Vector3.new(0.400000006, 0.600000024, 0.699999928) | |
| 489 | SpecialMesh27.MeshType = Enum.MeshType.Wedge | |
| 490 | Weld28.Name = "Part_Weld" | |
| 491 | Weld28.Parent = Part26 | |
| 492 | Weld28.C0 = CFrame.new(-34.6542549, -38.3037071, -7.42219925, 1, -6.37466928e-06, 4.26825172e-05, -3.75621021e-05, 0.358411252, 0.933563769, -2.12490559e-05, -0.933563769, 0.358411252) | |
| 493 | Weld28.C1 = CFrame.new(-5.79083681, -33.9573174, -34.65382, -4.37113883e-08, 1, 4.37113883e-08, 0, -4.37113883e-08, 1, 1, 4.37113883e-08, 1.91068547e-15) | |
| 494 | Weld28.Part0 = Part26 | |
| 495 | Weld28.Part1 = Part29 | |
| 496 | Weld28.part1 = Part29 | |
| 497 | Part29.Parent = Tool0 | |
| 498 | Part29.CFrame = CFrame.new(116.230263, 3.49391794, 113.246544, -0.999992132, 0.00375174568, 0.00128561596, 0.00374400057, 0.999975145, -0.00597486179, -0.00130800006, -0.00597000122, -0.999981344) | |
| 499 | Part29.Orientation = Vector3.new(0.340000004, 179.929993, 0.209999993) | |
| 500 | Part29.Position = Vector3.new(116.230263, 3.49391794, 113.246544) | |
| 501 | Part29.Rotation = Vector3.new(179.660004, 0.0700000003, -179.789993) | |
| 502 | Part29.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
| 503 | Part29.Size = Vector3.new(0.821395397, 6.98186111, 0.513372123) | |
| 504 | Part29.BottomSurface = Enum.SurfaceType.Smooth | |
| 505 | Part29.BrickColor = BrickColor.new("Really black")
| |
| 506 | Part29.CanCollide = false | |
| 507 | Part29.Material = Enum.Material.Granite | |
| 508 | Part29.TopSurface = Enum.SurfaceType.Smooth | |
| 509 | Part29.brickColor = BrickColor.new("Really black")
| |
| 510 | BlockMesh30.Parent = Part29 | |
| 511 | BlockMesh30.Scale = Vector3.new(0.400000006, 1, 0.400000006) | |
| 512 | Weld31.Name = "Part_Weld" | |
| 513 | Weld31.Parent = Part29 | |
| 514 | Weld31.C0 = CFrame.new(-5.79083681, -33.9573174, -34.65382, -4.37113883e-08, 1, 4.37113883e-08, 0, -4.37113883e-08, 1, 1, 4.37113883e-08, 1.91068547e-15) | |
| 515 | Weld31.C1 = CFrame.new(-34.662056, -10.8678055, 38.0263557, 1, -3.97989206e-05, 1.13026372e-05, -4.09751265e-05, -0.91493088, 0.403610349, -5.72212457e-06, -0.403610349, -0.91493088) | |
| 516 | Weld31.Part0 = Part29 | |
| 517 | Weld31.Part1 = Part32 | |
| 518 | Weld31.part1 = Part32 | |
| 519 | Part32.Parent = Tool0 | |
| 520 | Part32.CFrame = CFrame.new(116.637535, 8.71320915, 113.207878, 0.00132550066, 0.916437864, 0.400174588, -0.00596370874, 0.400175065, -0.916419148, -0.999981344, -0.00117181055, 0.00599580072) | |
| 521 | Part32.Orientation = Vector3.new(66.4100037, 89.1399994, -0.850000024) | |
| 522 | Part32.Position = Vector3.new(116.637535, 8.71320915, 113.207878) | |
| 523 | Part32.Rotation = Vector3.new(89.6299973, 23.5900002, -89.9199982) | |
| 524 | Part32.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
| 525 | Part32.Size = Vector3.new(0.513372123, 0.518505812, 0.539040804) | |
| 526 | Part32.BottomSurface = Enum.SurfaceType.Smooth | |
| 527 | Part32.BrickColor = BrickColor.new("Royal purple")
| |
| 528 | Part32.CanCollide = false | |
| 529 | Part32.Material = Enum.Material.Neon | |
| 530 | Part32.TopSurface = Enum.SurfaceType.Smooth | |
| 531 | Part32.brickColor = BrickColor.new("Royal purple")
| |
| 532 | SpecialMesh33.Parent = Part32 | |
| 533 | SpecialMesh33.Scale = Vector3.new(0.300000012, 0.600000024, 0.699999988) | |
| 534 | SpecialMesh33.MeshType = Enum.MeshType.Wedge | |
| 535 | Weld34.Name = "Part_Weld" | |
| 536 | Weld34.Parent = Part32 | |
| 537 | Weld34.C0 = CFrame.new(-34.662056, -10.8678055, 38.0263557, 1, -3.97989206e-05, 1.13026372e-05, -4.09751265e-05, -0.91493088, 0.403610349, -5.72212457e-06, -0.403610349, -0.91493088) | |
| 538 | Weld34.C1 = CFrame.new(-34.6569633, -11.9279442, 37.8729057, 1, -3.97989206e-05, 1.13026372e-05, -4.09751265e-05, -0.91493088, 0.403610349, -5.72212457e-06, -0.403610349, -0.91493088) | |
| 539 | Weld34.Part0 = Part32 | |
| 540 | Weld34.Part1 = Part35 | |
| 541 | Weld34.part1 = Part35 | |
| 542 | Part35.Parent = Tool0 | |
| 543 | Part35.CFrame = CFrame.new(117.670486, 8.99684811, 113.212646, 0.00132550066, 0.916437745, 0.400174528, -0.00596370874, 0.400175005, -0.916419029, -0.999981344, -0.00117181044, 0.00599579979) | |
| 544 | Part35.Orientation = Vector3.new(66.4100037, 89.1399994, -0.850000024) | |
| 545 | Part35.Position = Vector3.new(117.670486, 8.99684811, 113.212646) | |
| 546 | Part35.Rotation = Vector3.new(89.6299973, 23.5900002, -89.9199982) | |
| 547 | Part35.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
| 548 | Part35.Size = Vector3.new(0.513372123, 0.518505812, 0.539040804) | |
| 549 | Part35.BottomSurface = Enum.SurfaceType.Smooth | |
| 550 | Part35.BrickColor = BrickColor.new("Royal purple")
| |
| 551 | Part35.CanCollide = false | |
| 552 | Part35.Material = Enum.Material.Neon | |
| 553 | Part35.TopSurface = Enum.SurfaceType.Smooth | |
| 554 | Part35.brickColor = BrickColor.new("Royal purple")
| |
| 555 | SpecialMesh36.Parent = Part35 | |
| 556 | SpecialMesh36.Scale = Vector3.new(0.300000012, 0.600000024, 0.699999988) | |
| 557 | SpecialMesh36.MeshType = Enum.MeshType.Wedge | |
| 558 | Weld37.Name = "Part_Weld" | |
| 559 | Weld37.Parent = Part35 | |
| 560 | Weld37.C0 = CFrame.new(-34.6569633, -11.9279442, 37.8729057, 1, -3.97989206e-05, 1.13026372e-05, -4.09751265e-05, -0.91493088, 0.403610349, -5.72212457e-06, -0.403610349, -0.91493088) | |
| 561 | Weld37.C1 = CFrame.new(-37.0732422, -10.0967302, -34.6590042, -2.77766703e-05, 0.353263557, 0.935524285, -1.84533783e-05, -0.935524285, 0.353263557, 1, -7.4510931e-06, 3.25046385e-05) | |
| 562 | Weld37.Part0 = Part35 | |
| 563 | Weld37.Part1 = Part38 | |
| 564 | Weld37.part1 = Part38 | |
| 565 | Part38.Parent = Tool0 | |
| 566 | Part38.CFrame = CFrame.new(118.386566, 7.77929115, 113.219749, -0.349750847, 0.936841965, 0.00129323266, 0.936823428, 0.349752158, -0.00594238611, -0.00601938739, -0.000866824063, -0.999981523) | |
| 567 | Part38.Orientation = Vector3.new(0.340000004, 179.929993, 69.5299988) | |
| 568 | Part38.Position = Vector3.new(118.386566, 7.77929115, 113.219749) | |
| 569 | Part38.Rotation = Vector3.new(179.660004, 0.0700000003, -110.470001) | |
| 570 | Part38.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
| 571 | Part38.Size = Vector3.new(0.513372123, 0.55444169, 0.513372123) | |
| 572 | Part38.BottomSurface = Enum.SurfaceType.Smooth | |
| 573 | Part38.BrickColor = BrickColor.new("Really black")
| |
| 574 | Part38.CanCollide = false | |
| 575 | Part38.Material = Enum.Material.Granite | |
| 576 | Part38.TopSurface = Enum.SurfaceType.Smooth | |
| 577 | Part38.brickColor = BrickColor.new("Really black")
| |
| 578 | BlockMesh39.Parent = Part38 | |
| 579 | BlockMesh39.Scale = Vector3.new(0.550000012, 1, 0.550000012) | |
| 580 | Weld40.Name = "Part_Weld" | |
| 581 | Weld40.Parent = Part38 | |
| 582 | Weld40.C0 = CFrame.new(-37.0732422, -10.0967302, -34.6590042, -2.77766703e-05, 0.353263557, 0.935524285, -1.84533783e-05, -0.935524285, 0.353263557, 1, -7.4510931e-06, 3.25046385e-05) | |
| 583 | Weld40.C1 = CFrame.new(34.4366417, -15.1857309, -34.6475601, -2.24114753e-08, 0.292369425, -0.956305802, 3.04095332e-10, 0.956305802, 0.292369425, 1, 6.26159258e-09, -2.15211493e-08) | |
| 584 | Weld40.Part0 = Part38 | |
| 585 | Weld40.Part1 = Part41 | |
| 586 | Weld40.part1 = Part41 | |
| 587 | Part41.Parent = Tool0 | |
| 588 | Part41.CFrame = CFrame.new(117.57991, 6.90336657, 113.234177, -0.295955122, -0.955201864, 0.00128565333, -0.955187857, 0.295942724, -0.00597488368, 0.00532673998, -0.0029963376, -0.999981344) | |
| 589 | Part41.Orientation = Vector3.new(0.340000004, 179.929993, -72.7900009) | |
| 590 | Part41.Position = Vector3.new(117.57991, 6.90336657, 113.234177) | |
| 591 | Part41.Rotation = Vector3.new(179.660004, 0.0700000003, 107.209999) | |
| 592 | Part41.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
| 593 | Part41.Size = Vector3.new(0.513372123, 0.728988171, 0.513372123) | |
| 594 | Part41.BottomSurface = Enum.SurfaceType.Smooth | |
| 595 | Part41.BrickColor = BrickColor.new("Really black")
| |
| 596 | Part41.CanCollide = false | |
| 597 | Part41.Material = Enum.Material.Granite | |
| 598 | Part41.TopSurface = Enum.SurfaceType.Smooth | |
| 599 | Part41.brickColor = BrickColor.new("Really black")
| |
| 600 | BlockMesh42.Parent = Part41 | |
| 601 | BlockMesh42.Scale = Vector3.new(0.400000006, 1, 0.400000006) | |
| 602 | Weld43.Name = "Part_Weld" | |
| 603 | Weld43.Parent = Part41 | |
| 604 | Weld43.C0 = CFrame.new(34.4366417, -15.1857309, -34.6475601, -2.24114753e-08, 0.292369425, -0.956305802, 3.04095332e-10, 0.956305802, 0.292369425, 1, 6.26159258e-09, -2.15211493e-08) | |
| 605 | Weld43.C1 = CFrame.new(-32.3384285, 16.4893913, -34.6588783, -2.88835581e-05, -0.362230271, 0.932088912, 9.3476192e-06, -0.932088912, -0.362230271, 1, -1.74967965e-06, 3.03080251e-05) | |
| 606 | Weld43.Part0 = Part41 | |
| 607 | Weld43.Part1 = Part44 | |
| 608 | Weld43.part1 = Part44 | |
| 609 | Part44.Parent = Tool0 | |
| 610 | Part44.CFrame = CFrame.new(118.373627, 5.64486551, 113.232483, 0.365724772, 0.930723667, 0.00128752308, 0.930710793, -0.36571148, -0.00594456121, -0.00506188162, 0.0033723847, -0.999981523) | |
| 611 | Part44.Orientation = Vector3.new(0.340000004, 179.929993, 111.449997) | |
| 612 | Part44.Position = Vector3.new(118.373627, 5.64486551, 113.232483) | |
| 613 | Part44.Rotation = Vector3.new(179.660004, 0.0700000003, -68.5500031) | |
| 614 | Part44.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
| 615 | Part44.Size = Vector3.new(0.513372123, 0.775191665, 0.513372123) | |
| 616 | Part44.BottomSurface = Enum.SurfaceType.Smooth | |
| 617 | Part44.BrickColor = BrickColor.new("Really black")
| |
| 618 | Part44.CanCollide = false | |
| 619 | Part44.Material = Enum.Material.Granite | |
| 620 | Part44.TopSurface = Enum.SurfaceType.Smooth | |
| 621 | Part44.brickColor = BrickColor.new("Really black")
| |
| 622 | BlockMesh45.Parent = Part44 | |
| 623 | BlockMesh45.Scale = Vector3.new(0.550000012, 1, 0.550000012) | |
| 624 | Weld46.Name = "Part_Weld" | |
| 625 | Weld46.Parent = Part44 | |
| 626 | Weld46.C0 = CFrame.new(-32.3384285, 16.4893913, -34.6588783, -2.88835581e-05, -0.362230271, 0.932088912, 9.3476192e-06, -0.932088912, -0.362230271, 1, -1.74967965e-06, 3.03080251e-05) | |
| 627 | Weld46.C1 = CFrame.new(34.6540947, 37.0925331, 3.5063448, -1, -9.15522687e-05, -3.05189751e-05, 3.05161811e-05, 3.05189751e-05, -1, 9.15532e-05, -1, -3.05161811e-05) | |
| 628 | Weld46.Part0 = Part44 | |
| 629 | Weld46.Part1 = Part47 | |
| 630 | Weld46.part1 = Part47 | |
| 631 | Part47.Name = "BladeCenter" | |
| 632 | Part47.Parent = Tool0 | |
| 633 | Part47.CFrame = CFrame.new(118.52446, 6.62174082, 113.231987, -0.00119422248, -0.0037822125, 0.999993801, 0.00594400102, -0.999976814, -0.00377504854, 0.999981642, 0.00593945524, 0.00121667644) | |
| 634 | Part47.Orientation = Vector3.new(0.219999999, 89.9300003, 179.660004) | |
| 635 | Part47.Position = Vector3.new(118.52446, 6.62174082, 113.231987) | |
| 636 | Part47.Rotation = Vector3.new(72.1399994, 89.8000031, 107.519997) | |
| 637 | Part47.Color = Color3.new(0.384314, 0.145098, 0.819608) | |
| 638 | Part47.Size = Vector3.new(0.513372123, 1.02674425, 1.02674425) | |
| 639 | Part47.BottomSurface = Enum.SurfaceType.Smooth | |
| 640 | Part47.BrickColor = BrickColor.new("Royal purple")
| |
| 641 | Part47.CanCollide = false | |
| 642 | Part47.Material = Enum.Material.Neon | |
| 643 | Part47.TopSurface = Enum.SurfaceType.Smooth | |
| 644 | Part47.brickColor = BrickColor.new("Royal purple")
| |
| 645 | SpecialMesh48.Parent = Part47 | |
| 646 | SpecialMesh48.Scale = Vector3.new(0.499999911, 1, 0.699999928) | |
| 647 | SpecialMesh48.MeshType = Enum.MeshType.Brick | |
| 648 | Weld49.Name = "Part_Weld" | |
| 649 | Weld49.Parent = Part47 | |
| 650 | Weld49.C0 = CFrame.new(34.6540947, 37.0925331, 3.5063448, -1, -9.15522687e-05, -3.05189751e-05, 3.05161811e-05, 3.05189751e-05, -1, 9.15532e-05, -1, -3.05161811e-05) | |
| 651 | Weld49.C1 = CFrame.new(-37.1393547, 9.26848316, -34.6578369, -4.09776035e-08, -0.11906305, 0.992886722, 4.05430745e-10, -0.992886722, -0.11906305, 1, -4.47637571e-09, 4.0734399e-08) | |
| 652 | Weld49.Part0 = Part47 | |
| 653 | Weld49.Part1 = Part50 | |
| 654 | Weld49.part1 = Part50 | |
| 655 | Part50.Parent = Tool0 | |
| 656 | Part50.CFrame = CFrame.new(117.255554, 7.51146317, 113.219841, 0.122787356, 0.992433906, 0.00128566439, 0.992417872, -0.122777641, -0.00597482128, -0.00577176316, 0.00200954848, -0.999981344) | |
| 657 | Part50.Orientation = Vector3.new(0.340000004, 179.929993, 97.0500031) | |
| 658 | Part50.Position = Vector3.new(117.255554, 7.51146317, 113.219841) | |
| 659 | Part50.Rotation = Vector3.new(179.660004, 0.0700000003, -82.9499969) | |
| 660 | Part50.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
| 661 | Part50.Size = Vector3.new(1.49391294, 2.22290158, 0.513372123) | |
| 662 | Part50.BottomSurface = Enum.SurfaceType.Smooth | |
| 663 | Part50.BrickColor = BrickColor.new("Really black")
| |
| 664 | Part50.CanCollide = false | |
| 665 | Part50.Material = Enum.Material.Granite | |
| 666 | Part50.TopSurface = Enum.SurfaceType.Smooth | |
| 667 | Part50.brickColor = BrickColor.new("Really black")
| |
| 668 | BlockMesh51.Parent = Part50 | |
| 669 | BlockMesh51.Scale = Vector3.new(1, 1, 0.400000006) | |
| 670 | Weld52.Name = "Part_Weld" | |
| 671 | Weld52.Parent = Part50 | |
| 672 | Weld52.C0 = CFrame.new(-37.1393547, 9.26848316, -34.6578369, -4.09776035e-08, -0.11906305, 0.992886722, 4.05430745e-10, -0.992886722, -0.11906305, 1, -4.47637571e-09, 4.0734399e-08) | |
| 673 | Weld52.C1 = CFrame.new(35.4812355, 12.6162376, -34.6475601, -2.4837334e-08, -0.462350011, -0.886697888, 5.64353009e-10, 0.886697888, -0.462350011, 1, -1.19839818e-08, -2.17623022e-08) | |
| 674 | Weld52.Part0 = Part50 | |
| 675 | Weld52.Part1 = Part53 | |
| 676 | Weld52.part1 = Part53 | |
| 677 | Part53.Parent = Tool0 | |
| 678 | Part53.CFrame = CFrame.new(116.815643, 6.82872391, 113.233635, 0.459020495, -0.888427079, 0.00128567161, -0.888408363, -0.459019542, -0.00597488368, 0.00589839555, 0.0016003924, -0.999981344) | |
| 679 | Part53.Orientation = Vector3.new(0.340000004, 179.929993, -117.32) | |
| 680 | Part53.Position = Vector3.new(116.815643, 6.82872391, 113.233635) | |
| 681 | Part53.Rotation = Vector3.new(179.660004, 0.0700000003, 62.6800003) | |
| 682 | Part53.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
| 683 | Part53.Size = Vector3.new(1.28343034, 1.119151, 0.513372123) | |
| 684 | Part53.BottomSurface = Enum.SurfaceType.Smooth | |
| 685 | Part53.BrickColor = BrickColor.new("Really black")
| |
| 686 | Part53.CanCollide = false | |
| 687 | Part53.Material = Enum.Material.Granite | |
| 688 | Part53.TopSurface = Enum.SurfaceType.Smooth | |
| 689 | Part53.brickColor = BrickColor.new("Really black")
| |
| 690 | BlockMesh54.Parent = Part53 | |
| 691 | BlockMesh54.Scale = Vector3.new(0.400000006, 1, 0.400000006) | |
| 692 | Weld55.Name = "Part_Weld" | |
| 693 | Weld55.Parent = Part53 | |
| 694 | Weld55.C0 = CFrame.new(35.4812355, 12.6162376, -34.6475601, -2.4837334e-08, -0.462350011, -0.886697888, 5.64353009e-10, 0.886697888, -0.462350011, 1, -1.19839818e-08, -2.17623022e-08) | |
| 695 | Weld55.C1 = CFrame.new(24.6320801, -27.0809841, -34.6578217, -3.94735267e-08, 0.64509654, -0.764101744, -4.55740418e-10, 0.764101744, 0.64509654, 1, 2.58124242e-08, -2.98677882e-08) | |
| 696 | Weld55.Part0 = Part53 | |
| 697 | Weld55.Part1 = Part56 | |
| 698 | Weld55.part1 = Part56 | |
| 699 | Part56.Parent = Tool0 | |
| 700 | Part56.CFrame = CFrame.new(117.227287, 5.82416439, 113.229904, -0.647959769, -0.761677384, 0.00128563377, -0.761669397, 0.647942781, -0.0059748916, 0.00371792191, -0.00485071586, -0.999981344) | |
| 701 | Part56.Orientation = Vector3.new(0.340000004, 179.929993, -49.6100006) | |
| 702 | Part56.Position = Vector3.new(117.227287, 5.82416439, 113.229904) | |
| 703 | Part56.Rotation = Vector3.new(179.660004, 0.0700000003, 130.389999) | |
| 704 | Part56.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
| 705 | Part56.Size = Vector3.new(0.600645423, 2.19209886, 0.513372123) | |
| 706 | Part56.BottomSurface = Enum.SurfaceType.Smooth | |
| 707 | Part56.BrickColor = BrickColor.new("Really black")
| |
| 708 | Part56.CanCollide = false | |
| 709 | Part56.Material = Enum.Material.Neon | |
| 710 | Part56.TopSurface = Enum.SurfaceType.Smooth | |
| 711 | Part56.brickColor = BrickColor.new("Really black")
| |
| 712 | BlockMesh57.Parent = Part56 | |
| 713 | BlockMesh57.Scale = Vector3.new(1, 1, 0.400000006) | |
| 714 | Weld58.Name = "Part_Weld" | |
| 715 | Weld58.Parent = Part56 | |
| 716 | Weld58.C0 = CFrame.new(24.6320801, -27.0809841, -34.6578217, -3.94735267e-08, 0.64509654, -0.764101744, -4.55740418e-10, 0.764101744, 0.64509654, 1, 2.58124242e-08, -2.98677882e-08) | |
| 717 | Weld58.C1 = CFrame.new(-38.6623383, -5.23506308, -34.6526833, -4.37113883e-08, 0.258818924, 0.965925872, 0, -0.965925872, 0.258818924, 1, 1.13133343e-08, 4.22219593e-08) | |
| 718 | Weld58.Part0 = Part56 | |
| 719 | Weld58.Part1 = Part59 | |
| 720 | Weld58.part1 = Part59 | |
| 721 | Part59.Parent = Tool0 | |
| 722 | Part59.CFrame = CFrame.new(117.089012, 8.23335361, 113.220467, -0.25519383, 0.966892719, 0.00128564856, 0.966874182, 0.255196989, -0.00597481942, -0.00610510167, -0.000281676825, -0.999981344) | |
| 723 | Part59.Orientation = Vector3.new(0.340000004, 179.929993, 75.2099991) | |
| 724 | Part59.Position = Vector3.new(117.089012, 8.23335361, 113.220467) | |
| 725 | Part59.Rotation = Vector3.new(179.660004, 0.0700000003, -104.790001) | |
| 726 | Part59.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
| 727 | Part59.Size = Vector3.new(0.867598891, 2.44365168, 0.513372123) | |
| 728 | Part59.BottomSurface = Enum.SurfaceType.Smooth | |
| 729 | Part59.BrickColor = BrickColor.new("Really black")
| |
| 730 | Part59.CanCollide = false | |
| 731 | Part59.Material = Enum.Material.Granite | |
| 732 | Part59.TopSurface = Enum.SurfaceType.Smooth | |
| 733 | Part59.brickColor = BrickColor.new("Really black")
| |
| 734 | BlockMesh60.Parent = Part59 | |
| 735 | BlockMesh60.Scale = Vector3.new(1, 1, 0.400000006) | |
| 736 | Weld61.Name = "Part_Weld" | |
| 737 | Weld61.Parent = Part59 | |
| 738 | Weld61.C0 = CFrame.new(-38.6623383, -5.23506308, -34.6526833, -4.37113883e-08, 0.258818924, 0.965925872, 0, -0.965925872, 0.258818924, 1, 1.13133343e-08, 4.22219593e-08) | |
| 739 | Weld61.C1 = CFrame.new(32.8979568, -15.0844107, -34.6526909, -4.09009289e-08, 0.293349952, -0.956005633, 4.38312497e-10, 0.956005633, 0.293349952, 1, 1.15792238e-08, -3.92300876e-08) | |
| 740 | Weld61.Part0 = Part59 | |
| 741 | Weld61.Part1 = Part62 | |
| 742 | Weld61.part1 = Part62 | |
| 743 | Part62.Parent = Tool0 | |
| 744 | Part62.CFrame = CFrame.new(117.25811, 5.40849876, 113.237556, -0.296935439, -0.954900861, 0.00128564797, -0.954886854, 0.296922922, -0.00597490091, 0.00532369874, -0.00300180726, -0.999981344) | |
| 745 | Part62.Orientation = Vector3.new(0.340000004, 179.929993, -72.7300034) | |
| 746 | Part62.Position = Vector3.new(117.25811, 5.40849876, 113.237556) | |
| 747 | Part62.Rotation = Vector3.new(179.660004, 0.0700000003, 107.269997) | |
| 748 | Part62.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
| 749 | Part62.Size = Vector3.new(0.918936133, 2.16643047, 0.513372123) | |
| 750 | Part62.BottomSurface = Enum.SurfaceType.Smooth | |
| 751 | Part62.BrickColor = BrickColor.new("Really black")
| |
| 752 | Part62.CanCollide = false | |
| 753 | Part62.Material = Enum.Material.Neon | |
| 754 | Part62.TopSurface = Enum.SurfaceType.Smooth | |
| 755 | Part62.brickColor = BrickColor.new("Really black")
| |
| 756 | BlockMesh63.Parent = Part62 | |
| 757 | BlockMesh63.Scale = Vector3.new(1, 1, 0.400000006) | |
| 758 | Weld64.Name = "Wedge_Weld" | |
| 759 | Weld64.Parent = Part62 | |
| 760 | Weld64.C0 = CFrame.new(32.8979568, -15.0844107, -34.6526909, -4.09009289e-08, 0.293349952, -0.956005633, 4.38312497e-10, 0.956005633, 0.293349952, 1, 1.15792238e-08, -3.92300876e-08) | |
| 761 | Weld64.C1 = CFrame.new(-34.6515579, 35.6727676, -3.50611639, 1, 3.05171125e-05, -3.05180438e-05, -3.05171125e-05, -3.05180438e-05, -1, -3.05180438e-05, 1, -3.05171125e-05) | |
| 762 | Weld64.Part0 = Part62 | |
| 763 | Weld64.Part1 = WedgePart7 | |
| 764 | Weld64.part1 = WedgePart7 | |
| 765 | Part65.Name = "Handle" | |
| 766 | Part65.Parent = Tool0 | |
| 767 | Part65.CFrame = CFrame.new(116.223663, 1.78655195, 113.251839, -0.00151200069, 0.0246310085, -0.99969542, 0.00590700284, 0.999679387, 0.0246216767, 0.999981463, -0.00586797576, -0.00165701122) | |
| 768 | Part65.Orientation = Vector3.new(-1.40999997, -90.0899963, 0.340000004) | |
| 769 | Part65.Position = Vector3.new(116.223663, 1.78655195, 113.251839) | |
| 770 | Part65.Rotation = Vector3.new(-93.8499985, -88.5899963, -93.5100021) | |
| 771 | Part65.Transparency = 1 | |
| 772 | Part65.Size = Vector3.new(0.20021531, 0.73668915, 0.338826656) | |
| 773 | Part65.BottomSurface = Enum.SurfaceType.Smooth | |
| 774 | Part65.CanCollide = false | |
| 775 | Part65.TopSurface = Enum.SurfaceType.Smooth | |
| 776 | Sound66.Name = "UnsheathSound" | |
| 777 | Sound66.Parent = Part65 | |
| 778 | Sound66.Pitch = 1.2999999523163 | |
| 779 | Sound66.PlaybackSpeed = 1.2999999523163 | |
| 780 | Sound66.SoundId = "rbxassetid://347972965" | |
| 781 | Sound66.Volume = 0.28000000119209 | |
| 782 | Script67.Name = "qPerfectionWeld" | |
| 783 | Script67.Parent = Tool0 | |
| 784 | table.insert(cors,sandbox(Script67,function() | |
| 785 | -- Created by Quenty (@Quenty, follow me on twitter). | |
| 786 | -- Should work with only ONE copy, seamlessly with weapons, trains, et cetera. | |
| 787 | -- Parts should be ANCHORED before use. It will, however, store relatives values and so when tools are reparented, it'll fix them. | |
| 788 | ||
| 789 | --[[ INSTRUCTIONS | |
| 790 | - Place in the model | |
| 791 | - Make sure model is anchored | |
| 792 | - That's it. It will weld the model and all children. | |
| 793 | ||
| 794 | THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED. | |
| 795 | THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED. | |
| 796 | THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED. | |
| 797 | THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED. | |
| 798 | THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED. | |
| 799 | THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED. | |
| 800 | THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED. | |
| 801 | THIS SCRIPT SHOULD BE USED ONLY BY ITSELF. THE MODEL SHOULD BE ANCHORED. | |
| 802 | ||
| 803 | This script is designed to be used is a regular script. In a local script it will weld, but it will not attempt to handle ancestory changes. | |
| 804 | ]] | |
| 805 | ||
| 806 | --[[ DOCUMENTATION | |
| 807 | - Will work in tools. If ran more than once it will not create more than one weld. This is especially useful for tools that are dropped and then picked up again. | |
| 808 | - Will work in PBS servers | |
| 809 | - Will work as long as it starts out with the part anchored | |
| 810 | - Stores the relative CFrame as a CFrame value | |
| 811 | - Takes careful measure to reduce lag by not having a joint set off or affected by the parts offset from origin | |
| 812 | - Utilizes a recursive algorith to find all parts in the model | |
| 813 | - Will reweld on script reparent if the script is initially parented to a tool. | |
| 814 | - Welds as fast as possible | |
| 815 | ]] | |
| 816 | ||
| 817 | -- qPerfectionWeld.lua | |
| 818 | -- Created 10/6/2014 | |
| 819 | -- Author: Quenty | |
| 820 | -- Version 1.0.3 | |
| 821 | ||
| 822 | -- Updated 10/14/2014 - Updated to 1.0.1 | |
| 823 | --- Bug fix with existing ROBLOX welds ? Repro by asimo3089 | |
| 824 | ||
| 825 | -- Updated 10/14/2014 - Updated to 1.0.2 | |
| 826 | --- Fixed bug fix. | |
| 827 | ||
| 828 | -- Updated 10/14/2014 - Updated to 1.0.3 | |
| 829 | --- Now handles joints semi-acceptably. May be rather hacky with some joints. :/ | |
| 830 | ||
| 831 | local NEVER_BREAK_JOINTS = false -- If you set this to true it will never break joints (this can create some welding issues, but can save stuff like hinges). | |
| 832 | ||
| 833 | ||
| 834 | local function CallOnChildren(Instance, FunctionToCall) | |
| 835 | -- Calls a function on each of the children of a certain object, using recursion. | |
| 836 | ||
| 837 | FunctionToCall(Instance) | |
| 838 | ||
| 839 | for _, Child in next, Instance:GetChildren() do | |
| 840 | CallOnChildren(Child, FunctionToCall) | |
| 841 | end | |
| 842 | end | |
| 843 | ||
| 844 | local function GetNearestParent(Instance, ClassName) | |
| 845 | -- Returns the nearest parent of a certain class, or returns nil | |
| 846 | ||
| 847 | local Ancestor = Instance | |
| 848 | repeat | |
| 849 | Ancestor = Ancestor.Parent | |
| 850 | if Ancestor == nil then | |
| 851 | return nil | |
| 852 | end | |
| 853 | until Ancestor:IsA(ClassName) | |
| 854 | ||
| 855 | return Ancestor | |
| 856 | end | |
| 857 | ||
| 858 | local function GetBricks(StartInstance) | |
| 859 | local List = {}
| |
| 860 | ||
| 861 | -- if StartInstance:IsA("BasePart") then
| |
| 862 | -- List[#List+1] = StartInstance | |
| 863 | -- end | |
| 864 | ||
| 865 | CallOnChildren(StartInstance, function(Item) | |
| 866 | if Item:IsA("BasePart") then
| |
| 867 | List[#List+1] = Item; | |
| 868 | end | |
| 869 | end) | |
| 870 | ||
| 871 | return List | |
| 872 | end | |
| 873 | ||
| 874 | local function Modify(Instance, Values) | |
| 875 | -- Modifies an Instance by using a table. | |
| 876 | ||
| 877 | assert(type(Values) == "table", "Values is not a table"); | |
| 878 | ||
| 879 | for Index, Value in next, Values do | |
| 880 | if type(Index) == "number" then | |
| 881 | Value.Parent = Instance | |
| 882 | else | |
| 883 | Instance[Index] = Value | |
| 884 | end | |
| 885 | end | |
| 886 | return Instance | |
| 887 | end | |
| 888 | ||
| 889 | local function Make(ClassType, Properties) | |
| 890 | -- Using a syntax hack to create a nice way to Make new items. | |
| 891 | ||
| 892 | return Modify(Instance.new(ClassType), Properties) | |
| 893 | end | |
| 894 | ||
| 895 | local Surfaces = {"TopSurface", "BottomSurface", "LeftSurface", "RightSurface", "FrontSurface", "BackSurface"}
| |
| 896 | local HingSurfaces = {"Hinge", "Motor", "SteppingMotor"}
| |
| 897 | ||
| 898 | local function HasWheelJoint(Part) | |
| 899 | for _, SurfaceName in pairs(Surfaces) do | |
| 900 | for _, HingSurfaceName in pairs(HingSurfaces) do | |
| 901 | if Part[SurfaceName].Name == HingSurfaceName then | |
| 902 | return true | |
| 903 | end | |
| 904 | end | |
| 905 | end | |
| 906 | ||
| 907 | return false | |
| 908 | end | |
| 909 | ||
| 910 | local function ShouldBreakJoints(Part) | |
| 911 | --- We do not want to break joints of wheels/hinges. This takes the utmost care to not do this. There are | |
| 912 | -- definitely some edge cases. | |
| 913 | ||
| 914 | if NEVER_BREAK_JOINTS then | |
| 915 | return false | |
| 916 | end | |
| 917 | ||
| 918 | if HasWheelJoint(Part) then | |
| 919 | return false | |
| 920 | end | |
| 921 | ||
| 922 | local Connected = Part:GetConnectedParts() | |
| 923 | ||
| 924 | if #Connected == 1 then | |
| 925 | return false | |
| 926 | end | |
| 927 | ||
| 928 | for _, Item in pairs(Connected) do | |
| 929 | if HasWheelJoint(Item) then | |
| 930 | return false | |
| 931 | elseif not Item:IsDescendantOf(script.Parent) then | |
| 932 | return false | |
| 933 | end | |
| 934 | end | |
| 935 | ||
| 936 | return true | |
| 937 | end | |
| 938 | ||
| 939 | local function WeldTogether(Part0, Part1, JointType, WeldParent) | |
| 940 | --- Weld's 2 parts together | |
| 941 | -- @param Part0 The first part | |
| 942 | -- @param Part1 The second part (Dependent part most of the time). | |
| 943 | -- @param [JointType] The type of joint. Defaults to weld. | |
| 944 | -- @param [WeldParent] Parent of the weld, Defaults to Part0 (so GC is better). | |
| 945 | -- @return The weld created. | |
| 946 | ||
| 947 | JointType = JointType or "Weld" | |
| 948 | local RelativeValue = Part1:FindFirstChild("qRelativeCFrameWeldValue")
| |
| 949 | ||
| 950 | local NewWeld = Part1:FindFirstChild("qCFrameWeldThingy") or Instance.new(JointType)
| |
| 951 | Modify(NewWeld, {
| |
| 952 | Name = "qCFrameWeldThingy"; | |
| 953 | Part0 = Part0; | |
| 954 | Part1 = Part1; | |
| 955 | C0 = CFrame.new();--Part0.CFrame:inverse(); | |
| 956 | C1 = RelativeValue and RelativeValue.Value or Part1.CFrame:toObjectSpace(Part0.CFrame); --Part1.CFrame:inverse() * Part0.CFrame;-- Part1.CFrame:inverse(); | |
| 957 | Parent = Part1; | |
| 958 | }) | |
| 959 | ||
| 960 | if not RelativeValue then | |
| 961 | RelativeValue = Make("CFrameValue", {
| |
| 962 | Parent = Part1; | |
| 963 | Name = "qRelativeCFrameWeldValue"; | |
| 964 | Archivable = true; | |
| 965 | Value = NewWeld.C1; | |
| 966 | }) | |
| 967 | end | |
| 968 | ||
| 969 | return NewWeld | |
| 970 | end | |
| 971 | ||
| 972 | local function WeldParts(Parts, MainPart, JointType, DoNotUnanchor) | |
| 973 | -- @param Parts The Parts to weld. Should be anchored to prevent really horrible results. | |
| 974 | -- @param MainPart The part to weld the model to (can be in the model). | |
| 975 | -- @param [JointType] The type of joint. Defaults to weld. | |
| 976 | -- @parm DoNotUnanchor Boolean, if true, will not unachor the model after cmopletion. | |
| 977 | ||
| 978 | for _, Part in pairs(Parts) do | |
| 979 | if ShouldBreakJoints(Part) then | |
| 980 | Part:BreakJoints() | |
| 981 | end | |
| 982 | end | |
| 983 | ||
| 984 | for _, Part in pairs(Parts) do | |
| 985 | if Part ~= MainPart then | |
| 986 | WeldTogether(MainPart, Part, JointType, MainPart) | |
| 987 | end | |
| 988 | end | |
| 989 | ||
| 990 | if not DoNotUnanchor then | |
| 991 | for _, Part in pairs(Parts) do | |
| 992 | Part.Anchored = false | |
| 993 | end | |
| 994 | MainPart.Anchored = false | |
| 995 | end | |
| 996 | end | |
| 997 | ||
| 998 | local function PerfectionWeld() | |
| 999 | local Tool = GetNearestParent(script, "Tool") | |
| 1000 | ||
| 1001 | local Parts = GetBricks(script.Parent) | |
| 1002 | local PrimaryPart = Tool and Tool:FindFirstChild("Handle") and Tool.Handle:IsA("BasePart") and Tool.Handle or script.Parent:IsA("Model") and script.Parent.PrimaryPart or Parts[1]
| |
| 1003 | ||
| 1004 | if PrimaryPart then | |
| 1005 | WeldParts(Parts, PrimaryPart, "Weld", false) | |
| 1006 | else | |
| 1007 | warn("qWeld - Unable to weld part")
| |
| 1008 | end | |
| 1009 | ||
| 1010 | return Tool | |
| 1011 | end | |
| 1012 | ||
| 1013 | local Tool = PerfectionWeld() | |
| 1014 | ||
| 1015 | ||
| 1016 | if Tool and script.ClassName == "Script" then | |
| 1017 | --- Don't bother with local scripts | |
| 1018 | ||
| 1019 | script.Parent.AncestryChanged:connect(function() | |
| 1020 | PerfectionWeld() | |
| 1021 | end) | |
| 1022 | end | |
| 1023 | ||
| 1024 | -- Created by Quenty (@Quenty, follow me on twitter). | |
| 1025 | ||
| 1026 | end)) | |
| 1027 | Part68.Name = "WIng_1" | |
| 1028 | Part68.Parent = Tool0 | |
| 1029 | Part68.CFrame = CFrame.new(116.019638, 8.36704826, 113.511696, 0.499949127, -0.865936458, -0.0143209547, 0.86602515, 0.500000477, -6.00288956e-07, 0.00716100167, -0.0124020064, 0.99989754) | |
| 1030 | Part68.Orientation = Vector3.new(0, -0.819999993, 60) | |
| 1031 | Part68.Position = Vector3.new(116.019638, 8.36704826, 113.511696) | |
| 1032 | Part68.Rotation = Vector3.new(0, -0.819999993, 60) | |
| 1033 | Part68.Size = Vector3.new(0.102674432, 0.102674432, 0.102674432) | |
| 1034 | ParticleEmitter69.Name = "Fire" | |
| 1035 | ParticleEmitter69.Parent = Part68 | |
| 1036 | ParticleEmitter69.Rotation = NumberRange.new(151515, 151515) | |
| 1037 | ParticleEmitter69.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0)) | |
| 1038 | ParticleEmitter69.LightEmission = 0.77999997138977 | |
| 1039 | ParticleEmitter69.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 1040 | ParticleEmitter69.Size = NumberSequence.new(0.80000001192093,0.80000001192093) | |
| 1041 | ParticleEmitter69.Acceleration = Vector3.new(0, 2.60647511, -6) | |
| 1042 | ParticleEmitter69.Lifetime = NumberRange.new(2, 2) | |
| 1043 | ParticleEmitter69.LockedToPart = true | |
| 1044 | ParticleEmitter69.Rate = 300 | |
| 1045 | ParticleEmitter69.RotSpeed = NumberRange.new(10, 10) | |
| 1046 | Part70.Name = "WIng_1" | |
| 1047 | Part70.Parent = Part68 | |
| 1048 | Part70.CFrame = CFrame.new(116.019638, 8.36704826, 113.511696, 0.642721057, -0.765966475, -0.0143238334, 0.766045094, 0.64278698, -1.0802263e-06, 0.0092080012, -0.0109720062, 0.99989748) | |
| 1049 | Part70.Orientation = Vector3.new(0, -0.819999993, 50) | |
| 1050 | Part70.Position = Vector3.new(116.019638, 8.36704826, 113.511696) | |
| 1051 | Part70.Rotation = Vector3.new(0, -0.819999993, 50) | |
| 1052 | Part70.Size = Vector3.new(0.102674432, 0.102674432, 0.102674432) | |
| 1053 | ParticleEmitter71.Name = "Fire" | |
| 1054 | ParticleEmitter71.Parent = Part70 | |
| 1055 | ParticleEmitter71.Rotation = NumberRange.new(151515, 151515) | |
| 1056 | ParticleEmitter71.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0)) | |
| 1057 | ParticleEmitter71.LightEmission = 0.77999997138977 | |
| 1058 | ParticleEmitter71.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 1059 | ParticleEmitter71.Size = NumberSequence.new(0.80000001192093,0.80000001192093) | |
| 1060 | ParticleEmitter71.Acceleration = Vector3.new(0, 2.60649109, -6) | |
| 1061 | ParticleEmitter71.Lifetime = NumberRange.new(2.2999999523163, 2.2999999523163) | |
| 1062 | ParticleEmitter71.LockedToPart = true | |
| 1063 | ParticleEmitter71.Rate = 300 | |
| 1064 | ParticleEmitter71.RotSpeed = NumberRange.new(10, 10) | |
| 1065 | Part72.Name = "WIng_1" | |
| 1066 | Part72.Parent = Part68 | |
| 1067 | Part72.CFrame = CFrame.new(116.019638, 8.36704826, 113.511696, 0.865936697, -0.499948561, -0.0143221719, 0.499999821, 0.866025507, -1.25883412e-06, 0.0124039957, -0.00715999352, 0.99989748) | |
| 1068 | Part72.Orientation = Vector3.new(0, -0.819999993, 30) | |
| 1069 | Part72.Position = Vector3.new(116.019638, 8.36704826, 113.511696) | |
| 1070 | Part72.Rotation = Vector3.new(0, -0.819999993, 30) | |
| 1071 | Part72.Size = Vector3.new(0.102674432, 0.102674432, 0.102674432) | |
| 1072 | ParticleEmitter73.Name = "Fire" | |
| 1073 | ParticleEmitter73.Parent = Part72 | |
| 1074 | ParticleEmitter73.Rotation = NumberRange.new(151515, 151515) | |
| 1075 | ParticleEmitter73.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0)) | |
| 1076 | ParticleEmitter73.LightEmission = 0.77999997138977 | |
| 1077 | ParticleEmitter73.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 1078 | ParticleEmitter73.Size = NumberSequence.new(0.80000001192093,0.80000001192093) | |
| 1079 | ParticleEmitter73.Acceleration = Vector3.new(0, 2.60657406, -6) | |
| 1080 | ParticleEmitter73.Lifetime = NumberRange.new(2.5, 2.5) | |
| 1081 | ParticleEmitter73.LockedToPart = true | |
| 1082 | ParticleEmitter73.Rate = 300 | |
| 1083 | ParticleEmitter73.RotSpeed = NumberRange.new(10, 10) | |
| 1084 | Part74.Name = "WIng_1" | |
| 1085 | Part74.Parent = Part68 | |
| 1086 | Part74.CFrame = CFrame.new(116.019638, 8.36704826, 113.511696, 0.341986984, -0.93959552, -0.0143241687, 0.939691901, 0.342022061, -8.70686392e-07, 0.00489999959, -0.0134600066, 0.99989748) | |
| 1087 | Part74.Orientation = Vector3.new(0, -0.819999993, 70) | |
| 1088 | Part74.Position = Vector3.new(116.019638, 8.36704826, 113.511696) | |
| 1089 | Part74.Rotation = Vector3.new(0, -0.819999993, 70) | |
| 1090 | Part74.Size = Vector3.new(0.102674432, 0.102674432, 0.102674432) | |
| 1091 | ParticleEmitter75.Name = "Fire" | |
| 1092 | ParticleEmitter75.Parent = Part74 | |
| 1093 | ParticleEmitter75.Rotation = NumberRange.new(151515, 151515) | |
| 1094 | ParticleEmitter75.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0)) | |
| 1095 | ParticleEmitter75.LightEmission = 0.77999997138977 | |
| 1096 | ParticleEmitter75.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 1097 | ParticleEmitter75.Size = NumberSequence.new(0.80000001192093,0.80000001192093) | |
| 1098 | ParticleEmitter75.Acceleration = Vector3.new(0, 2.60645962, -6) | |
| 1099 | ParticleEmitter75.Lifetime = NumberRange.new(1, 1) | |
| 1100 | ParticleEmitter75.LockedToPart = true | |
| 1101 | ParticleEmitter75.Rate = 300 | |
| 1102 | ParticleEmitter75.RotSpeed = NumberRange.new(10, 10) | |
| 1103 | Part76.Name = "WIng_1" | |
| 1104 | Part76.Parent = Part68 | |
| 1105 | Part76.CFrame = CFrame.new(116.019638, 8.36704826, 113.511696, 0.7659657, -0.642721832, -0.0143224159, 0.642787755, 0.766044319, 9.45176225e-07, 0.0109709967, -0.00920699723, 0.99989742) | |
| 1106 | Part76.Orientation = Vector3.new(0, -0.819999993, 40) | |
| 1107 | Part76.Position = Vector3.new(116.019638, 8.36704826, 113.511696) | |
| 1108 | Part76.Rotation = Vector3.new(0, -0.819999993, 40) | |
| 1109 | Part76.Size = Vector3.new(0.102674432, 0.102674432, 0.102674432) | |
| 1110 | ParticleEmitter77.Name = "Fire" | |
| 1111 | ParticleEmitter77.Parent = Part76 | |
| 1112 | ParticleEmitter77.Rotation = NumberRange.new(151515, 151515) | |
| 1113 | ParticleEmitter77.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0)) | |
| 1114 | ParticleEmitter77.LightEmission = 0.77999997138977 | |
| 1115 | ParticleEmitter77.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 1116 | ParticleEmitter77.Size = NumberSequence.new(0.80000001192093,0.80000001192093) | |
| 1117 | ParticleEmitter77.Acceleration = Vector3.new(0, 2.60650897, -6) | |
| 1118 | ParticleEmitter77.Lifetime = NumberRange.new(2, 2) | |
| 1119 | ParticleEmitter77.LockedToPart = true | |
| 1120 | ParticleEmitter77.Rate = 300 | |
| 1121 | ParticleEmitter77.RotSpeed = NumberRange.new(10, 10) | |
| 1122 | Part78.Name = "WIng_1" | |
| 1123 | Part78.Parent = Part68 | |
| 1124 | Part78.CFrame = CFrame.new(116.027, 8.36704826, 112.998383, 0.499949127, -0.865936458, -0.0143209547, 0.86602515, 0.500000477, -6.00288956e-07, 0.00716100167, -0.0124020064, 0.99989754) | |
| 1125 | Part78.Orientation = Vector3.new(0, -0.819999993, 60) | |
| 1126 | Part78.Position = Vector3.new(116.027, 8.36704826, 112.998383) | |
| 1127 | Part78.Rotation = Vector3.new(0, -0.819999993, 60) | |
| 1128 | Part78.Size = Vector3.new(0.102674432, 0.102674432, 0.102674432) | |
| 1129 | ParticleEmitter79.Name = "Fire" | |
| 1130 | ParticleEmitter79.Parent = Part78 | |
| 1131 | ParticleEmitter79.Rotation = NumberRange.new(151515, 151515) | |
| 1132 | ParticleEmitter79.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0)) | |
| 1133 | ParticleEmitter79.LightEmission = 0.77999997138977 | |
| 1134 | ParticleEmitter79.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 1135 | ParticleEmitter79.Size = NumberSequence.new(0.80000001192093,0.80000001192093) | |
| 1136 | ParticleEmitter79.Acceleration = Vector3.new(0, 2.60647511, 6) | |
| 1137 | ParticleEmitter79.Lifetime = NumberRange.new(2, 2) | |
| 1138 | ParticleEmitter79.LockedToPart = true | |
| 1139 | ParticleEmitter79.Rate = 300 | |
| 1140 | ParticleEmitter79.RotSpeed = NumberRange.new(10, 10) | |
| 1141 | Part80.Name = "WIng_1" | |
| 1142 | Part80.Parent = Part68 | |
| 1143 | Part80.CFrame = CFrame.new(116.027, 8.36704826, 112.998383, 0.341986984, -0.93959552, -0.0143241687, 0.939691901, 0.342022061, -8.70686392e-07, 0.00489999959, -0.0134600066, 0.99989748) | |
| 1144 | Part80.Orientation = Vector3.new(0, -0.819999993, 70) | |
| 1145 | Part80.Position = Vector3.new(116.027, 8.36704826, 112.998383) | |
| 1146 | Part80.Rotation = Vector3.new(0, -0.819999993, 70) | |
| 1147 | Part80.Size = Vector3.new(0.102674432, 0.102674432, 0.102674432) | |
| 1148 | ParticleEmitter81.Name = "Fire" | |
| 1149 | ParticleEmitter81.Parent = Part80 | |
| 1150 | ParticleEmitter81.Rotation = NumberRange.new(151515, 151515) | |
| 1151 | ParticleEmitter81.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0)) | |
| 1152 | ParticleEmitter81.LightEmission = 0.77999997138977 | |
| 1153 | ParticleEmitter81.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 1154 | ParticleEmitter81.Size = NumberSequence.new(0.80000001192093,0.80000001192093) | |
| 1155 | ParticleEmitter81.Acceleration = Vector3.new(0, 2.60645962, 6) | |
| 1156 | ParticleEmitter81.Lifetime = NumberRange.new(1, 1) | |
| 1157 | ParticleEmitter81.LockedToPart = true | |
| 1158 | ParticleEmitter81.Rate = 300 | |
| 1159 | ParticleEmitter81.RotSpeed = NumberRange.new(10, 10) | |
| 1160 | Part82.Name = "WIng_1" | |
| 1161 | Part82.Parent = Part68 | |
| 1162 | Part82.CFrame = CFrame.new(116.027, 8.36704826, 112.998383, 0.7659657, -0.642721832, -0.0143224159, 0.642787755, 0.766044319, 9.45176225e-07, 0.0109709967, -0.00920699723, 0.99989742) | |
| 1163 | Part82.Orientation = Vector3.new(0, -0.819999993, 40) | |
| 1164 | Part82.Position = Vector3.new(116.027, 8.36704826, 112.998383) | |
| 1165 | Part82.Rotation = Vector3.new(0, -0.819999993, 40) | |
| 1166 | Part82.Size = Vector3.new(0.102674432, 0.102674432, 0.102674432) | |
| 1167 | ParticleEmitter83.Name = "Fire" | |
| 1168 | ParticleEmitter83.Parent = Part82 | |
| 1169 | ParticleEmitter83.Rotation = NumberRange.new(151515, 151515) | |
| 1170 | ParticleEmitter83.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0)) | |
| 1171 | ParticleEmitter83.LightEmission = 0.77999997138977 | |
| 1172 | ParticleEmitter83.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 1173 | ParticleEmitter83.Size = NumberSequence.new(0.80000001192093,0.80000001192093) | |
| 1174 | ParticleEmitter83.Acceleration = Vector3.new(0, 2.60650897, 6) | |
| 1175 | ParticleEmitter83.Lifetime = NumberRange.new(2, 2) | |
| 1176 | ParticleEmitter83.LockedToPart = true | |
| 1177 | ParticleEmitter83.Rate = 300 | |
| 1178 | ParticleEmitter83.RotSpeed = NumberRange.new(10, 10) | |
| 1179 | Part84.Name = "WIng_1" | |
| 1180 | Part84.Parent = Part68 | |
| 1181 | Part84.CFrame = CFrame.new(116.027, 8.36704826, 112.998383, 0.642721057, -0.765966475, -0.0143238334, 0.766045094, 0.64278698, -1.0802263e-06, 0.0092080012, -0.0109720062, 0.99989748) | |
| 1182 | Part84.Orientation = Vector3.new(0, -0.819999993, 50) | |
| 1183 | Part84.Position = Vector3.new(116.027, 8.36704826, 112.998383) | |
| 1184 | Part84.Rotation = Vector3.new(0, -0.819999993, 50) | |
| 1185 | Part84.Size = Vector3.new(0.102674432, 0.102674432, 0.102674432) | |
| 1186 | ParticleEmitter85.Name = "Fire" | |
| 1187 | ParticleEmitter85.Parent = Part84 | |
| 1188 | ParticleEmitter85.Rotation = NumberRange.new(151515, 151515) | |
| 1189 | ParticleEmitter85.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0)) | |
| 1190 | ParticleEmitter85.LightEmission = 0.77999997138977 | |
| 1191 | ParticleEmitter85.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 1192 | ParticleEmitter85.Size = NumberSequence.new(0.80000001192093,0.80000001192093) | |
| 1193 | ParticleEmitter85.Acceleration = Vector3.new(0, 2.60649109, 6) | |
| 1194 | ParticleEmitter85.Lifetime = NumberRange.new(2.2999999523163, 2.2999999523163) | |
| 1195 | ParticleEmitter85.LockedToPart = true | |
| 1196 | ParticleEmitter85.Rate = 300 | |
| 1197 | ParticleEmitter85.RotSpeed = NumberRange.new(10, 10) | |
| 1198 | Part86.Name = "WIng_1" | |
| 1199 | Part86.Parent = Part68 | |
| 1200 | Part86.CFrame = CFrame.new(116.027, 8.36704826, 112.998383, 0.865936697, -0.499948561, -0.0143221719, 0.499999821, 0.866025507, -1.25883412e-06, 0.0124039957, -0.00715999352, 0.99989748) | |
| 1201 | Part86.Orientation = Vector3.new(0, -0.819999993, 30) | |
| 1202 | Part86.Position = Vector3.new(116.027, 8.36704826, 112.998383) | |
| 1203 | Part86.Rotation = Vector3.new(0, -0.819999993, 30) | |
| 1204 | Part86.Size = Vector3.new(0.102674432, 0.102674432, 0.102674432) | |
| 1205 | ParticleEmitter87.Name = "Fire" | |
| 1206 | ParticleEmitter87.Parent = Part86 | |
| 1207 | ParticleEmitter87.Rotation = NumberRange.new(151515, 151515) | |
| 1208 | ParticleEmitter87.Color = ColorSequence.new(Color3.new(0, 0, 0),Color3.new(0, 0, 0)) | |
| 1209 | ParticleEmitter87.LightEmission = 0.77999997138977 | |
| 1210 | ParticleEmitter87.Texture = "rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 1211 | ParticleEmitter87.Size = NumberSequence.new(0.80000001192093,0.80000001192093) | |
| 1212 | ParticleEmitter87.Acceleration = Vector3.new(0, 2.60657406, 6) | |
| 1213 | ParticleEmitter87.Lifetime = NumberRange.new(2.5, 2.5) | |
| 1214 | ParticleEmitter87.LockedToPart = true | |
| 1215 | ParticleEmitter87.Rate = 300 | |
| 1216 | ParticleEmitter87.RotSpeed = NumberRange.new(10, 10) | |
| 1217 | Animation88.Name = "SlashAnim2" | |
| 1218 | Animation88.Parent = Tool0 | |
| 1219 | Animation88.AnimationId = "http://www.roblox.com/Asset?ID=94161088" | |
| 1220 | Part89.Name = "Damage" | |
| 1221 | Part89.Parent = Tool0 | |
| 1222 | Part89.CFrame = CFrame.new(117.415344, 6.8174181, 113.236961, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1223 | Part89.Position = Vector3.new(117.415344, 6.8174181, 113.236961) | |
| 1224 | Part89.Transparency = 1 | |
| 1225 | Part89.Size = Vector3.new(1.63681114, 2.63748765, 0.4119564) | |
| 1226 | Part89.BottomSurface = Enum.SurfaceType.Smooth | |
| 1227 | Part89.CanCollide = false | |
| 1228 | Part89.TopSurface = Enum.SurfaceType.Smooth | |
| 1229 | Script90.Parent = Part89 | |
| 1230 | table.insert(cors,sandbox(Script90,function() | |
| 1231 | function onTouched(hit) | |
| 1232 | hit.Anchored = false | |
| 1233 | hit:BreakJoints() | |
| 1234 | end | |
| 1235 | ||
| 1236 | connection = script.Parent.Touched:connect(onTouched) | |
| 1237 | ||
| 1238 | end)) | |
| 1239 | LocalScript91.Name = "*Slash Animation*" | |
| 1240 | LocalScript91.Parent = Tool0 | |
| 1241 | table.insert(cors,sandbox(LocalScript91,function() | |
| 1242 | local Tool = script.Parent; | |
| 1243 | local PlaySlash = nil | |
| 1244 | enabled = true | |
| 1245 | function onActivated() | |
| 1246 | if not enabled then | |
| 1247 | return | |
| 1248 | end | |
| 1249 | enabled = false | |
| 1250 | local humanoid = Tool.Parent:FindFirstChild("Humanoid")
| |
| 1251 | local torso = Tool.Parent:FindFirstChild("Torso")
| |
| 1252 | PlaySlash = humanoid:LoadAnimation(Tool.SlashAnim2) | |
| 1253 | Tool.IsCrystal.Value = PlaySlash | |
| 1254 | PlaySlash:Play() | |
| 1255 | wait(0.8) | |
| 1256 | PlaySlash:Stop() | |
| 1257 | PlaySlash:remove() | |
| 1258 | enabled = true | |
| 1259 | end | |
| 1260 | function onEquipped() | |
| 1261 | end | |
| 1262 | function onUnequipped() | |
| 1263 | if PlaySlash ~= nil then | |
| 1264 | PlaySlash:Stop() | |
| 1265 | PlaySlash:remove() | |
| 1266 | end | |
| 1267 | end | |
| 1268 | Tool.Activated:connect(onActivated) | |
| 1269 | Tool.Equipped:connect(onEquipped) | |
| 1270 | Tool.Unequipped:connect(OnUnequipped) | |
| 1271 | ||
| 1272 | end)) | |
| 1273 | ObjectValue92.Name = "IsCrystal" | |
| 1274 | ObjectValue92.Parent = Tool0 | |
| 1275 | BoolValue93.Name = "PlayOverhead" | |
| 1276 | BoolValue93.Parent = Tool0 | |
| 1277 | BoolValue94.Name = "PlaySlash" | |
| 1278 | BoolValue94.Parent = Tool0 | |
| 1279 | BoolValue95.Name = "PlayThrust" | |
| 1280 | BoolValue95.Parent = Tool0 | |
| 1281 | Animation96.Name = "IdleAnim3" | |
| 1282 | Animation96.Parent = Tool0 | |
| 1283 | Animation96.AnimationId = "http://www.roblox.com/Asset?ID=4553608251" | |
| 1284 | LocalScript97.Name = "AnimationScript" | |
| 1285 | LocalScript97.Parent = Tool0 | |
| 1286 | table.insert(cors,sandbox(LocalScript97,function() | |
| 1287 | local function WaitForChild(parent, childName) | |
| 1288 | while not parent:FindFirstChild(childName) do parent.ChildAdded:wait() end | |
| 1289 | return parent[childName] | |
| 1290 | end | |
| 1291 | local Tool = script.Parent | |
| 1292 | local Animations = {}
| |
| 1293 | local MyHumanoid | |
| 1294 | local MyCharacter | |
| 1295 | local function PlayAnimation(animationName) | |
| 1296 | if Animations[animationName] then | |
| 1297 | Animations[animationName]:Play() | |
| 1298 | end | |
| 1299 | end | |
| 1300 | local function StopAnimation(animationName) | |
| 1301 | if Animations[animationName] then | |
| 1302 | Animations[animationName]:Stop() | |
| 1303 | end | |
| 1304 | end | |
| 1305 | function OnEquipped(mouse) | |
| 1306 | MyCharacter = Tool.Parent | |
| 1307 | MyHumanoid = WaitForChild(MyCharacter,'Humanoid') | |
| 1308 | if MyHumanoid then | |
| 1309 | Animations['EquipAnim'] = MyHumanoid:LoadAnimation(WaitForChild(Tool,'EquipAnim5')) | |
| 1310 | Animations['IdleAnim'] = MyHumanoid:LoadAnimation(WaitForChild(Tool,'IdleAnim3')) | |
| 1311 | Animations['SlashAnim'] = MyHumanoid:LoadAnimation(WaitForChild(Tool,'SlashAnim2')) | |
| 1312 | end | |
| 1313 | PlayAnimation('EquipAnim')
| |
| 1314 | PlayAnimation('IdleAnim')
| |
| 1315 | end | |
| 1316 | function OnUnequipped() | |
| 1317 | for animName, _ in pairs(Animations) do | |
| 1318 | StopAnimation(animName) | |
| 1319 | end | |
| 1320 | end | |
| 1321 | Tool.Equipped:connect(OnEquipped) | |
| 1322 | Tool.Unequipped:connect(OnUnequipped) | |
| 1323 | WaitForChild(Tool,'PlaySlash').Changed:connect( | |
| 1324 | function (value) | |
| 1325 | PlayAnimation('SlashAnim')
| |
| 1326 | end) | |
| 1327 | end)) | |
| 1328 | for i,v in pairs(mas:GetChildren()) do | |
| 1329 | v.Parent = game:GetService("Players").LocalPlayer.Backpack
| |
| 1330 | pcall(function() v:MakeJoints() end) | |
| 1331 | end | |
| 1332 | mas:Destroy() | |
| 1333 | for i,v in pairs(cors) do | |
| 1334 | spawn(function() | |
| 1335 | pcall(v) | |
| 1336 | end) | |
| 1337 | end |