SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 2 | local Player,game,owner = owner,game | |
| 3 | local RealPlayer = Player | |
| 4 | do | |
| 5 | print("FE Compatibility code by Mokiros")
| |
| 6 | local rp = RealPlayer | |
| 7 | script.Parent = rp.Character | |
| 8 | ||
| 9 | --RemoteEvent for communicating | |
| 10 | local Event = Instance.new("RemoteEvent")
| |
| 11 | Event.Name = "UserInput_Event" | |
| 12 | ||
| 13 | --Fake event to make stuff like Mouse.KeyDown work | |
| 14 | local function fakeEvent() | |
| 15 | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
| |
| 16 | t.connect = t.Connect | |
| 17 | return t | |
| 18 | end | |
| 19 | ||
| 20 | --Creating fake input objects with fake variables | |
| 21 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 22 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 23 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 24 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 25 | end} | |
| 26 | --Merged 2 functions into one by checking amount of arguments | |
| 27 | CAS.UnbindAction = CAS.BindAction | |
| 28 | ||
| 29 | --This function will trigger the events that have been :Connect()'ed | |
| 30 | local function te(self,ev,...) | |
| 31 | local t = m[ev] | |
| 32 | if t and t._fakeEvent then | |
| 33 | for _,f in pairs(t.Functions) do | |
| 34 | f(...) | |
| 35 | end | |
| 36 | end | |
| 37 | end | |
| 38 | m.TrigEvent = te | |
| 39 | UIS.TrigEvent = te | |
| 40 | ||
| 41 | Event.OnServerEvent:Connect(function(plr,io) | |
| 42 | if plr~=rp then return end | |
| 43 | m.Target = io.Target | |
| 44 | m.Hit = io.Hit | |
| 45 | if not io.isMouse then | |
| 46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 49 | end | |
| 50 | for _,t in pairs(CAS.Actions) do | |
| 51 | for _,k in pairs(t.Keys) do | |
| 52 | if k==io.KeyCode then | |
| 53 | t.Function(t.Name,io.UserInputState,io) | |
| 54 | end | |
| 55 | end | |
| 56 | end | |
| 57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 59 | end | |
| 60 | end) | |
| 61 | Event.Parent = NLS([==[ | |
| 62 | local Player = game:GetService("Players").LocalPlayer
| |
| 63 | local Event = script:WaitForChild("UserInput_Event")
| |
| 64 | ||
| 65 | local Mouse = Player:GetMouse() | |
| 66 | local UIS = game:GetService("UserInputService")
| |
| 67 | local input = function(io,a) | |
| 68 | if a then return end | |
| 69 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 70 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 71 | end | |
| 72 | UIS.InputBegan:Connect(input) | |
| 73 | UIS.InputEnded:Connect(input) | |
| 74 | ||
| 75 | local h,t | |
| 76 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 77 | --If player is not moving their mouse, client won't fire events | |
| 78 | while wait(1/30) do | |
| 79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 80 | h,t=Mouse.Hit,Mouse.Target | |
| 81 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 82 | end | |
| 83 | end]==],Player.Character) | |
| 84 | ||
| 85 | ----Sandboxed game object that allows the usage of client-side methods and services | |
| 86 | --Real game object | |
| 87 | local _rg = game | |
| 88 | ||
| 89 | --Metatable for fake service | |
| 90 | local fsmt = {
| |
| 91 | __index = function(self,k) | |
| 92 | local s = rawget(self,"_RealService") | |
| 93 | if s then return s[k] end | |
| 94 | end, | |
| 95 | __newindex = function(self,k,v) | |
| 96 | local s = rawget(self,"_RealService") | |
| 97 | if s then s[k]=v end | |
| 98 | end, | |
| 99 | __call = function(self,...) | |
| 100 | local s = rawget(self,"_RealService") | |
| 101 | if s then return s(...) end | |
| 102 | end | |
| 103 | } | |
| 104 | local function FakeService(t,RealService) | |
| 105 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
| 106 | return setmetatable(t,fsmt) | |
| 107 | end | |
| 108 | ||
| 109 | --Fake game object | |
| 110 | local g = {
| |
| 111 | GetService = function(self,s) | |
| 112 | return self[s] | |
| 113 | end, | |
| 114 | Players = FakeService({
| |
| 115 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
| |
| 116 | },"Players"), | |
| 117 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 118 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 119 | } | |
| 120 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
| 121 | g.service = g.GetService | |
| 122 | ||
| 123 | g.RunService = FakeService({
| |
| 124 | RenderStepped = _rg:GetService("RunService").Heartbeat,
| |
| 125 | BindToRenderStep = function(self,name,_,fun) | |
| 126 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
| 127 | end, | |
| 128 | UnbindFromRenderStep = function(self,name) | |
| 129 | self._btrs[name]:Disconnect() | |
| 130 | end, | |
| 131 | },"RunService") | |
| 132 | ||
| 133 | setmetatable(g,{
| |
| 134 | __index=function(self,s) | |
| 135 | return _rg:GetService(s) or typeof(_rg[s])=="function" | |
| 136 | and function(_,...)return _rg[s](_rg,...)end or _rg[s] | |
| 137 | end, | |
| 138 | __newindex = fsmt.__newindex, | |
| 139 | __call = fsmt.__call | |
| 140 | }) | |
| 141 | --Changing owner to fake player object to support owner:GetMouse() | |
| 142 | game,owner = g,g.Players.LocalPlayer | |
| 143 | end | |
| 144 | ||
| 145 | wait(1/60) | |
| 146 | local plr = game.Players.LocalPlayer | |
| 147 | local char = plr.Character | |
| 148 | ||
| 149 | local SpellTime = 100 | |
| 150 | ||
| 151 | function sandbox(var,func) | |
| 152 | local env = getfenv(func) | |
| 153 | local newenv = setmetatable({},{
| |
| 154 | __index = function(self,k) | |
| 155 | if k=="script" then | |
| 156 | return var | |
| 157 | else | |
| 158 | return env[k] | |
| 159 | end | |
| 160 | end, | |
| 161 | }) | |
| 162 | setfenv(func,newenv) | |
| 163 | return func | |
| 164 | end | |
| 165 | cors = {}
| |
| 166 | mas = Instance.new("Model",game:GetService("Lighting"))
| |
| 167 | Tool0 = Instance.new("Tool")
| |
| 168 | Part1 = Instance.new("Part")
| |
| 169 | Part2 = Instance.new("Part")
| |
| 170 | Part3 = Instance.new("Part")
| |
| 171 | Part4 = Instance.new("Part")
| |
| 172 | ManualWeld5 = Instance.new("ManualWeld")
| |
| 173 | Part6 = Instance.new("Part")
| |
| 174 | Part7 = Instance.new("Part")
| |
| 175 | Part8 = Instance.new("Part")
| |
| 176 | ManualWeld9 = Instance.new("ManualWeld")
| |
| 177 | Part10 = Instance.new("Part")
| |
| 178 | Part11 = Instance.new("Part")
| |
| 179 | Part12 = Instance.new("Part")
| |
| 180 | Part13 = Instance.new("Part")
| |
| 181 | Part14 = Instance.new("Part")
| |
| 182 | Script15 = Instance.new("Script")
| |
| 183 | LocalScript16 = Instance.new("LocalScript")
| |
| 184 | Part17 = Instance.new("Part")
| |
| 185 | Part18 = Instance.new("Part")
| |
| 186 | Part19 = Instance.new("Part")
| |
| 187 | Part20 = Instance.new("Part")
| |
| 188 | Part21 = Instance.new("Part")
| |
| 189 | Part22 = Instance.new("Part")
| |
| 190 | Part23 = Instance.new("Part")
| |
| 191 | Part24 = Instance.new("Part")
| |
| 192 | Tool0.Name = "a cool staff" | |
| 193 | Tool0.Parent = mas | |
| 194 | Tool0.ToolTip = "warning high explosion" | |
| 195 | Part1.Parent = Tool0 | |
| 196 | Part1.Material = Enum.Material.Wood | |
| 197 | Part1.BrickColor = BrickColor.new("Burnt Sienna")
| |
| 198 | Part1.Rotation = Vector3.new(116.209999, 0, -180) | |
| 199 | Part1.Anchored = true | |
| 200 | Part1.Size = Vector3.new(0.199999809, 0.259998947, 0.19999969) | |
| 201 | Part1.CFrame = CFrame.new(72.6000061, 5.05251026, -50.9067726, -1, 0, 0, 0, 0.441644162, -0.897190273, 0, -0.897190273, -0.441644162) | |
| 202 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
| 203 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
| 204 | Part1.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 205 | Part1.Position = Vector3.new(72.6000061, 5.05251026, -50.9067726) | |
| 206 | Part1.Orientation = Vector3.new(63.7899971, 180, 0) | |
| 207 | Part1.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 208 | Part2.Parent = Tool0 | |
| 209 | Part2.BrickColor = BrickColor.new("Ghost grey")
| |
| 210 | Part2.Rotation = Vector3.new(-180, 0, -180) | |
| 211 | Part2.Anchored = true | |
| 212 | Part2.Size = Vector3.new(0.200571179, 0.499999523, 0.200571075) | |
| 213 | Part2.CFrame = CFrame.new(72.6000061, 2.99156809, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1) | |
| 214 | Part2.BottomSurface = Enum.SurfaceType.Smooth | |
| 215 | Part2.TopSurface = Enum.SurfaceType.Smooth | |
| 216 | Part2.Color = Color3.new(0.792157, 0.796079, 0.819608) | |
| 217 | Part2.Position = Vector3.new(72.6000061, 2.99156809, -50.8356361) | |
| 218 | Part2.Orientation = Vector3.new(0, 180, 0) | |
| 219 | Part2.Color = Color3.new(0.792157, 0.796079, 0.819608) | |
| 220 | Part3.Parent = Tool0 | |
| 221 | Part3.BrickColor = BrickColor.new("Ghost grey")
| |
| 222 | Part3.Rotation = Vector3.new(-180, 0, -180) | |
| 223 | Part3.Anchored = true | |
| 224 | Part3.Size = Vector3.new(0.200571179, 0.319999456, 0.200571075) | |
| 225 | Part3.CFrame = CFrame.new(72.6000061, 4.21157122, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1) | |
| 226 | Part3.BottomSurface = Enum.SurfaceType.Smooth | |
| 227 | Part3.TopSurface = Enum.SurfaceType.Smooth | |
| 228 | Part3.Color = Color3.new(0.792157, 0.796079, 0.819608) | |
| 229 | Part3.Position = Vector3.new(72.6000061, 4.21157122, -50.8356361) | |
| 230 | Part3.Orientation = Vector3.new(0, 180, 0) | |
| 231 | Part3.Color = Color3.new(0.792157, 0.796079, 0.819608) | |
| 232 | Part4.Parent = Tool0 | |
| 233 | Part4.BrickColor = BrickColor.new("Ghost grey")
| |
| 234 | Part4.Rotation = Vector3.new(-180, 0, -180) | |
| 235 | Part4.Anchored = true | |
| 236 | Part4.Size = Vector3.new(0.200571179, 0.409999192, 0.200571075) | |
| 237 | Part4.CFrame = CFrame.new(72.6000061, 3.45656633, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1) | |
| 238 | Part4.BottomSurface = Enum.SurfaceType.Smooth | |
| 239 | Part4.TopSurface = Enum.SurfaceType.Smooth | |
| 240 | Part4.Color = Color3.new(0.792157, 0.796079, 0.819608) | |
| 241 | Part4.Position = Vector3.new(72.6000061, 3.45656633, -50.8356361) | |
| 242 | Part4.Orientation = Vector3.new(0, 180, 0) | |
| 243 | Part4.Color = Color3.new(0.792157, 0.796079, 0.819608) | |
| 244 | ManualWeld5.Name = "Part-to-Part Strong Joint" | |
| 245 | ManualWeld5.Parent = Part4 | |
| 246 | ManualWeld5.C0 = CFrame.new(0.10028559, -0.204999596, 0.100285538, 1, 0, 0, 0, 0, -1, 0, 1, 0) | |
| 247 | ManualWeld5.C1 = CFrame.new(0.100284576, 0.25999856, 0.100284576, 1, 0, 0, 0, 0, -1, 0, 1, 0) | |
| 248 | ManualWeld5.Part0 = Part4 | |
| 249 | ManualWeld5.Part1 = Part2 | |
| 250 | Part6.Parent = Tool0 | |
| 251 | Part6.Material = Enum.Material.Neon | |
| 252 | Part6.BrickColor = BrickColor.new("Maroon")
| |
| 253 | Part6.Anchored = true | |
| 254 | Part6.Shape = Enum.PartType.Ball | |
| 255 | Part6.Size = Vector3.new(0.649999797, 0.649999797, 0.649999797) | |
| 256 | Part6.CFrame = CFrame.new(72.5800018, 5.6065712, -50.8699837, 1, 0, -0, 0, 1, -8.94069672e-08, 0, 8.94069672e-08, 1) | |
| 257 | Part6.BottomSurface = Enum.SurfaceType.Smooth | |
| 258 | Part6.TopSurface = Enum.SurfaceType.Smooth | |
| 259 | Part6.Color = Color3.new(0.458824, 0, 0) | |
| 260 | Part6.Position = Vector3.new(72.5800018, 5.6065712, -50.8699837) | |
| 261 | Part6.Color = Color3.new(0.458824, 0, 0) | |
| 262 | Part7.Parent = Tool0 | |
| 263 | Part7.Material = Enum.Material.Wood | |
| 264 | Part7.BrickColor = BrickColor.new("Burnt Sienna")
| |
| 265 | Part7.Rotation = Vector3.new(-180, 0, -180) | |
| 266 | Part7.Anchored = true | |
| 267 | Part7.Size = Vector3.new(0.199999809, 2.90999842, 0.19999969) | |
| 268 | Part7.CFrame = CFrame.new(72.6000061, 3.5665679, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1) | |
| 269 | Part7.BottomSurface = Enum.SurfaceType.Smooth | |
| 270 | Part7.TopSurface = Enum.SurfaceType.Smooth | |
| 271 | Part7.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 272 | Part7.Position = Vector3.new(72.6000061, 3.5665679, -50.8356361) | |
| 273 | Part7.Orientation = Vector3.new(0, 180, 0) | |
| 274 | Part7.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 275 | Part8.Parent = Tool0 | |
| 276 | Part8.BrickColor = BrickColor.new("Ghost grey")
| |
| 277 | Part8.Rotation = Vector3.new(-180, 0, -180) | |
| 278 | Part8.Anchored = true | |
| 279 | Part8.Size = Vector3.new(0.200571179, 0.349999249, 0.200571075) | |
| 280 | Part8.CFrame = CFrame.new(72.6000061, 3.85656738, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1) | |
| 281 | Part8.BottomSurface = Enum.SurfaceType.Smooth | |
| 282 | Part8.TopSurface = Enum.SurfaceType.Smooth | |
| 283 | Part8.Color = Color3.new(0.792157, 0.796079, 0.819608) | |
| 284 | Part8.Position = Vector3.new(72.6000061, 3.85656738, -50.8356361) | |
| 285 | Part8.Orientation = Vector3.new(0, 180, 0) | |
| 286 | Part8.Color = Color3.new(0.792157, 0.796079, 0.819608) | |
| 287 | ManualWeld9.Name = "Part-to-Part Strong Joint" | |
| 288 | ManualWeld9.Parent = Part8 | |
| 289 | ManualWeld9.C0 = CFrame.new(-0.10028559, 0.174999624, 0.100285538, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
| 290 | ManualWeld9.C1 = CFrame.new(-0.100284576, -0.18000412, 0.100284576, -1, 0, 0, 0, 0, 1, 0, 1, -0) | |
| 291 | ManualWeld9.Part0 = Part8 | |
| 292 | ManualWeld9.Part1 = Part3 | |
| 293 | Part10.Parent = Tool0 | |
| 294 | Part10.BrickColor = BrickColor.new("Ghost grey")
| |
| 295 | Part10.Rotation = Vector3.new(-180, 0, -180) | |
| 296 | Part10.Anchored = true | |
| 297 | Part10.Size = Vector3.new(0.200571179, 0.569999278, 0.200571075) | |
| 298 | Part10.CFrame = CFrame.new(72.6000061, 2.43656635, -50.8356361, -1, 0, 0, 0, 1, 0, 0, 0, -1) | |
| 299 | Part10.BottomSurface = Enum.SurfaceType.Smooth | |
| 300 | Part10.TopSurface = Enum.SurfaceType.Smooth | |
| 301 | Part10.Color = Color3.new(0.792157, 0.796079, 0.819608) | |
| 302 | Part10.Position = Vector3.new(72.6000061, 2.43656635, -50.8356361) | |
| 303 | Part10.Orientation = Vector3.new(0, 180, 0) | |
| 304 | Part10.Color = Color3.new(0.792157, 0.796079, 0.819608) | |
| 305 | Part11.Parent = Tool0 | |
| 306 | Part11.Material = Enum.Material.Wood | |
| 307 | Part11.BrickColor = BrickColor.new("Burnt Sienna")
| |
| 308 | Part11.Rotation = Vector3.new(-177.099991, 0, -180) | |
| 309 | Part11.Anchored = true | |
| 310 | Part11.Size = Vector3.new(0.199999809, 0.919999719, 0.19999969) | |
| 311 | Part11.CFrame = CFrame.new(72.5999985, 1.80297112, -50.8531914, -1, 0, 0, 0, 0.998716116, 0.0506570078, 0, 0.0506570078, -0.998716116) | |
| 312 | Part11.BottomSurface = Enum.SurfaceType.Smooth | |
| 313 | Part11.TopSurface = Enum.SurfaceType.Smooth | |
| 314 | Part11.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 315 | Part11.Position = Vector3.new(72.5999985, 1.80297112, -50.8531914) | |
| 316 | Part11.Orientation = Vector3.new(-2.89999986, 180, 0) | |
| 317 | Part11.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 318 | Part12.Parent = Tool0 | |
| 319 | Part12.Material = Enum.Material.Wood | |
| 320 | Part12.BrickColor = BrickColor.new("Burnt Sienna")
| |
| 321 | Part12.Rotation = Vector3.new(177.619995, 0, -180) | |
| 322 | Part12.Anchored = true | |
| 323 | Part12.Size = Vector3.new(0.199999809, 1.15999949, 0.19999969) | |
| 324 | Part12.CFrame = CFrame.new(72.5999985, 0.803365231, -50.8432655, -1, 0, 0, 0, 0.999136627, -0.0415469855, 0, -0.0415469855, -0.999136627) | |
| 325 | Part12.BottomSurface = Enum.SurfaceType.Smooth | |
| 326 | Part12.TopSurface = Enum.SurfaceType.Smooth | |
| 327 | Part12.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 328 | Part12.Position = Vector3.new(72.5999985, 0.803365231, -50.8432655) | |
| 329 | Part12.Orientation = Vector3.new(2.37999988, 180, 0) | |
| 330 | Part12.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 331 | Part13.Parent = Tool0 | |
| 332 | Part13.Material = Enum.Material.Wood | |
| 333 | Part13.BrickColor = BrickColor.new("Burnt Sienna")
| |
| 334 | Part13.Rotation = Vector3.new(160.440002, 0, -180) | |
| 335 | Part13.Anchored = true | |
| 336 | Part13.Size = Vector3.new(0.189999804, 0.289999992, 0.190000027) | |
| 337 | Part13.CFrame = CFrame.new(72.5949936, 0.168441296, -50.7875595, -1, 0, 0, 0, 0.942295253, -0.334783107, 0, -0.334783077, -0.942295253) | |
| 338 | Part13.BottomSurface = Enum.SurfaceType.Smooth | |
| 339 | Part13.TopSurface = Enum.SurfaceType.Smooth | |
| 340 | Part13.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 341 | Part13.Position = Vector3.new(72.5949936, 0.168441296, -50.7875595) | |
| 342 | Part13.Orientation = Vector3.new(19.5599995, 180, 0) | |
| 343 | Part13.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 344 | Part14.Name = "Handle" | |
| 345 | Part14.Parent = Tool0 | |
| 346 | Part14.Material = Enum.Material.Wood | |
| 347 | Part14.BrickColor = BrickColor.new("Burnt Sienna")
| |
| 348 | Part14.Transparency = 1 | |
| 349 | Part14.Anchored = true | |
| 350 | Part14.Size = Vector3.new(0.199999809, 0.749999762, 0.19999969) | |
| 351 | Part14.CFrame = CFrame.new(72.6000061, 2.8165679, -50.8356361, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 352 | Part14.BottomSurface = Enum.SurfaceType.Smooth | |
| 353 | Part14.TopSurface = Enum.SurfaceType.Smooth | |
| 354 | Part14.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 355 | Part14.Position = Vector3.new(72.6000061, 2.8165679, -50.8356361) | |
| 356 | Part14.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 357 | Script15.Name = "weld" | |
| 358 | Script15.Parent = Tool0 | |
| 359 | table.insert(cors,sandbox(Script15,function() | |
| 360 | function weld() | |
| 361 | local parts,last = {}
| |
| 362 | local function scan(parent) | |
| 363 | for _,v in pairs(parent:GetChildren()) do | |
| 364 | if (v:IsA("BasePart")) or (v:IsA("UnionOperation")) or (v:IsA("MeshPart")) then
| |
| 365 | if (last) then | |
| 366 | local w = Instance.new("Weld")
| |
| 367 | w.Name = ("%s_Weld"):format(v.Name)
| |
| 368 | w.Part0,w.Part1 = last,v | |
| 369 | w.C0 = last.CFrame:inverse() | |
| 370 | w.C1 = v.CFrame:inverse() | |
| 371 | w.Parent = last | |
| 372 | end | |
| 373 | last = v | |
| 374 | table.insert(parts,v) | |
| 375 | end | |
| 376 | scan(v) | |
| 377 | end | |
| 378 | end | |
| 379 | scan(script.Parent) | |
| 380 | for _,v in pairs(parts) do | |
| 381 | v.Anchored = false | |
| 382 | end | |
| 383 | end | |
| 384 | ||
| 385 | weld() | |
| 386 | script:Remove() | |
| 387 | end)) | |
| 388 | LocalScript16.Parent = Tool0 | |
| 389 | table.insert(cors,sandbox(LocalScript16,function() | |
| 390 | ||
| 391 | local tool = Tool0 | |
| 392 | ||
| 393 | local GF = Vector3.new(0, 0.447, -0.894) | |
| 394 | local GR = Vector3.new(0.707, -0.707, 0) | |
| 395 | local oringalGF = tool.GripForward | |
| 396 | local oringalGR = tool.GripRight | |
| 397 | ||
| 398 | local enabled = false | |
| 399 | ||
| 400 | function chatfunc(text) | |
| 401 | local chat = coroutine.wrap(function() | |
| 402 | if char:FindFirstChild("TalkingBillBoard")~= nil then
| |
| 403 | char:FindFirstChild("TalkingBillBoard"):Destroy()
| |
| 404 | end | |
| 405 | local naeeym4 = Instance.new("BillboardGui",char)
| |
| 406 | naeeym4.Size = UDim2.new(0,100,0,40) | |
| 407 | naeeym4.StudsOffset = Vector3.new(0,4,0) | |
| 408 | naeeym4.Adornee = char.Head | |
| 409 | naeeym4.Name = "TalkingBillBoard" | |
| 410 | local tecks4 = Instance.new("TextLabel",naeeym4)
| |
| 411 | tecks4.BackgroundTransparency = 1 | |
| 412 | tecks4.BorderSizePixel = 0 | |
| 413 | tecks4.Text = "" | |
| 414 | tecks4.Font = Enum.Font.SourceSans | |
| 415 | tecks4.TextSize = 30 | |
| 416 | tecks4.TextStrokeTransparency = 0 | |
| 417 | tecks4.TextColor3 = Color3.fromRGB(255,255,255) | |
| 418 | tecks4.TextStrokeColor3 = Color3.new(0,0,0) | |
| 419 | tecks4.Size = UDim2.new(1,0,0.5,0) | |
| 420 | ||
| 421 | for i = 1,string.len(text),1 do | |
| 422 | tecks4.Text = string.sub(text,1,i) | |
| 423 | wait(0.01) | |
| 424 | end | |
| 425 | ||
| 426 | wait(2) | |
| 427 | for i = 1, 50 do | |
| 428 | wait() | |
| 429 | tecks4.Position = tecks4.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
| 430 | tecks4.Rotation = tecks4.Rotation - 1 | |
| 431 | tecks4.TextStrokeTransparency = tecks4.TextStrokeTransparency +.04 | |
| 432 | tecks4.TextTransparency = tecks4.TextTransparency + .04 | |
| 433 | ||
| 434 | end | |
| 435 | naeeym4:Destroy() | |
| 436 | end) | |
| 437 | chat() | |
| 438 | end | |
| 439 | ||
| 440 | function boom(part) | |
| 441 | ||
| 442 | local mesh = Instance.new('SpecialMesh')
| |
| 443 | mesh.MeshType = "FileMesh" | |
| 444 | mesh.MeshId = "rbxassetid://3270017" | |
| 445 | mesh.Scale = Vector3.new(10,10,15) | |
| 446 | ||
| 447 | local eff1 = Instance.new('Part',workspace)
| |
| 448 | eff1.Position= part.Position | |
| 449 | eff1.Shape = "Ball" | |
| 450 | eff1.Anchored = true | |
| 451 | eff1.CanCollide = false | |
| 452 | eff1.Material = Enum.Material.Neon | |
| 453 | eff1.BrickColor = BrickColor.new('Gold')
| |
| 454 | eff1.Transparency = 0 | |
| 455 | eff1.Size = Vector3.new(15,15,15) | |
| 456 | eff1.Name = "eff1" | |
| 457 | ||
| 458 | local eff2 = Instance.new('Part',workspace)
| |
| 459 | eff2.Position= part.Position | |
| 460 | eff2.Shape = "Ball" | |
| 461 | eff2.Anchored = true | |
| 462 | eff2.CanCollide = false | |
| 463 | eff2.Material = Enum.Material.Neon | |
| 464 | eff2.BrickColor = BrickColor.new('Really red')
| |
| 465 | eff2.Transparency = 0 | |
| 466 | eff2.Size = Vector3.new(20,20,20) | |
| 467 | eff2.Name = "eff2" | |
| 468 | ||
| 469 | local eff3 = Instance.new('Part',workspace)
| |
| 470 | eff3.Position = part.Position | |
| 471 | eff3.Anchored = true | |
| 472 | eff3.CanCollide = false | |
| 473 | eff3.Orientation = Vector3.new(90,0,0) | |
| 474 | eff3.Name = "eff3" | |
| 475 | mesh.Parent = eff3 | |
| 476 | ||
| 477 | for i=1,87 do | |
| 478 | workspace.beam.Size = workspace.beam.Size + Vector3.new(3,0,3) | |
| 479 | workspace.beam.Transparency = workspace.beam.Transparency + 0.01 | |
| 480 | eff1.Size = eff1.Size + Vector3.new(6,6,6) | |
| 481 | eff1.Transparency = eff1.Transparency + 0.02 | |
| 482 | eff2.Size = eff2.Size + Vector3.new(6,6,6) | |
| 483 | eff2.Transparency = eff2.Transparency + 0.02 | |
| 484 | eff3.Mesh.Scale = eff3.Mesh.Scale + Vector3.new(8.7,8.7,0) | |
| 485 | wait() | |
| 486 | end | |
| 487 | ||
| 488 | eff1:Destroy() | |
| 489 | eff2:Destroy() | |
| 490 | eff3:Destroy() | |
| 491 | end | |
| 492 | ||
| 493 | function effect(part) | |
| 494 | ||
| 495 | local id1 = "rbxassetid://154979644" | |
| 496 | local decal1 = Instance.new("Decal")
| |
| 497 | decal1.Texture = id1 | |
| 498 | ||
| 499 | local id2 = "rbxassetid://939916520" | |
| 500 | ||
| 501 | local plrP = Instance.new("Part",workspace)
| |
| 502 | plrP.Name = "pp" | |
| 503 | plrP.Size = Vector3.new(18.2, 0.1, 18.2) | |
| 504 | plrP.Position = char.Torso.Position - Vector3.new(0,3,0) | |
| 505 | plrP.CanCollide = false | |
| 506 | plrP.Anchored = true | |
| 507 | plrP.Transparency = 1 | |
| 508 | decal1.Parent = plrP | |
| 509 | decal1.Face = "Top" | |
| 510 | ||
| 511 | wait(2) | |
| 512 | ||
| 513 | local p1 = Instance.new("ParticleEmitter",plrP)
| |
| 514 | p1.Color = ColorSequence.new(Color3.fromRGB(103,0,0),Color3.fromRGB(170,0,0)) | |
| 515 | p1.LightEmission = 1 | |
| 516 | p1.Size = NumberSequence.new(0,1) | |
| 517 | p1.Acceleration = Vector3.new(0,2,0) | |
| 518 | p1.Lifetime = NumberRange.new(2,2) | |
| 519 | p1.Rate = 10 | |
| 520 | p1.Speed = NumberRange.new(8.7,8.7) | |
| 521 | ||
| 522 | chatfunc("Darkness blacker than black and darker than dark")
| |
| 523 | ||
| 524 | local c1 = Instance.new("Part",workspace)
| |
| 525 | c1.Name = "c1" | |
| 526 | c1.Size = Vector3.new(109.2, 0.1, 109.2) | |
| 527 | c1.Position = part.Position | |
| 528 | c1.CanCollide = false | |
| 529 | c1.Anchored = true | |
| 530 | c1.Transparency = 1 | |
| 531 | local decal2 = Instance.new("Decal")
| |
| 532 | decal2.Texture = id2 | |
| 533 | decal2.Parent = c1 | |
| 534 | decal2.Face = "Top" | |
| 535 | local decal3 = Instance.new("Decal")
| |
| 536 | decal3.Texture = id2 | |
| 537 | decal3.Parent = c1 | |
| 538 | decal3.Face = "Bottom" | |
| 539 | ||
| 540 | local p2 = Instance.new("ParticleEmitter",c1)
| |
| 541 | p2.Color = ColorSequence.new(Color3.fromRGB(103,0,0),Color3.fromRGB(170,0,0)) | |
| 542 | p2.LightEmission = 1 | |
| 543 | p2.Size = NumberSequence.new(1,1) | |
| 544 | p2.Acceleration = Vector3.new(0,2,0) | |
| 545 | p2.Lifetime = NumberRange.new(150,150) | |
| 546 | p2.Rate = 50 | |
| 547 | p2.Speed = NumberRange.new(8.7,8.7) | |
| 548 | ||
| 549 | for i=1 ,SpellTime do | |
| 550 | c1.CFrame = c1.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 551 | wait() | |
| 552 | end | |
| 553 | ||
| 554 | chatfunc("I beseech thee, combine with my deep crimson")
| |
| 555 | ||
| 556 | local c2 = Instance.new("Part",workspace)
| |
| 557 | c2.Name = "c2" | |
| 558 | c2.Size = Vector3.new(89.831, 0.1, 89.831) | |
| 559 | c2.Position = part.Position + Vector3.new(0,40,0) | |
| 560 | c2.CanCollide = false | |
| 561 | c2.Anchored = true | |
| 562 | c2.Transparency = 1 | |
| 563 | local decal4 = Instance.new("Decal")
| |
| 564 | decal4.Texture = id2 | |
| 565 | local decal5 = Instance.new("Decal")
| |
| 566 | decal5.Texture = id2 | |
| 567 | decal4.Parent = c2 | |
| 568 | decal4.Face = "Top" | |
| 569 | decal5.Parent = c2 | |
| 570 | decal5.Face = "Bottom" | |
| 571 | ||
| 572 | for i=1 ,SpellTime do | |
| 573 | c1.CFrame = c1.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 574 | c2.CFrame = c2.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 575 | wait() | |
| 576 | end | |
| 577 | ||
| 578 | chatfunc("The time of awakening cometh")
| |
| 579 | ||
| 580 | local c3 = Instance.new("Part",workspace)
| |
| 581 | c3.Name = "c3" | |
| 582 | c3.Size = Vector3.new(61.598, 0.1, 61.598) | |
| 583 | c3.Position = part.Position + Vector3.new(0,60,0) | |
| 584 | c3.CanCollide = false | |
| 585 | c3.Anchored = true | |
| 586 | c3.Transparency = 1 | |
| 587 | local decal6 = Instance.new("Decal")
| |
| 588 | decal6.Texture = id2 | |
| 589 | local decal7 = Instance.new("Decal")
| |
| 590 | decal7.Texture = id2 | |
| 591 | decal6.Parent = c3 | |
| 592 | decal6.Face = "Top" | |
| 593 | decal7.Parent = c3 | |
| 594 | decal7.Face = "Bottom" | |
| 595 | ||
| 596 | for i=1 ,SpellTime do | |
| 597 | c1.CFrame = c1.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 598 | c2.CFrame = c2.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 599 | c3.CFrame = c3.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 600 | wait() | |
| 601 | end | |
| 602 | ||
| 603 | chatfunc("Justice, fallen upon the infallible boundary")
| |
| 604 | ||
| 605 | local c4 = Instance.new("Part",workspace)
| |
| 606 | c4.Name = "c4" | |
| 607 | c4.Size = Vector3.new(163.328, 0.1, 163.328) | |
| 608 | c4.Position = part.Position + Vector3.new(0,90,0) | |
| 609 | c4.CanCollide = false | |
| 610 | c4.Anchored = true | |
| 611 | c4.Transparency = 1 | |
| 612 | local decal8 = Instance.new("Decal")
| |
| 613 | decal8.Texture = id2 | |
| 614 | local decal9 = Instance.new("Decal")
| |
| 615 | decal9.Texture = id2 | |
| 616 | decal8.Parent = c4 | |
| 617 | decal8.Face = "Top" | |
| 618 | decal9.Parent = c4 | |
| 619 | decal9.Face = "Bottom" | |
| 620 | ||
| 621 | for i=1 ,SpellTime do | |
| 622 | c1.CFrame = c1.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 623 | c2.CFrame = c2.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 624 | c3.CFrame = c3.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 625 | c4.CFrame = c4.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 626 | wait() | |
| 627 | end | |
| 628 | ||
| 629 | chatfunc("Appear now as an intangible distortions!")
| |
| 630 | ||
| 631 | local c5 = Instance.new("Part",workspace)
| |
| 632 | c5.Name = "c5" | |
| 633 | c5.Size = Vector3.new(226.147, 0.1, 226.147) | |
| 634 | c5.Position = part.Position + Vector3.new(0,110,0) | |
| 635 | c5.CanCollide = false | |
| 636 | c5.Anchored = true | |
| 637 | c5.Transparency = 1 | |
| 638 | local decal10 = Instance.new("Decal")
| |
| 639 | decal10.Texture = id2 | |
| 640 | local decal11 = Instance.new("Decal")
| |
| 641 | decal11.Texture = id2 | |
| 642 | decal10.Parent = c5 | |
| 643 | decal10.Face = "Top" | |
| 644 | decal11.Parent = c5 | |
| 645 | decal11.Face = "Bottom" | |
| 646 | ||
| 647 | for i=1 ,SpellTime do | |
| 648 | c1.CFrame = c1.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 649 | c2.CFrame = c2.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 650 | c3.CFrame = c3.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 651 | c4.CFrame = c4.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 652 | c5.CFrame = c5.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 653 | wait() | |
| 654 | end | |
| 655 | ||
| 656 | chatfunc("I desire for my torrent of power a destructive force")
| |
| 657 | ||
| 658 | local c6 = Instance.new("Part",workspace)
| |
| 659 | c6.Name = "c6" | |
| 660 | c6.Size = Vector3.new(163.328, 0.1, 163.328) | |
| 661 | c6.Position = part.Position + Vector3.new(0,130,0) | |
| 662 | c6.CanCollide = false | |
| 663 | c6.Anchored = true | |
| 664 | c6.Transparency = 1 | |
| 665 | local d1 = Instance.new("Decal")
| |
| 666 | d1.Texture = id2 | |
| 667 | local d2 = Instance.new("Decal")
| |
| 668 | d2.Texture = id2 | |
| 669 | d1.Parent = c6 | |
| 670 | d1.Face = "Top" | |
| 671 | d2.Parent = c6 | |
| 672 | d2.Face = "Bottom" | |
| 673 | ||
| 674 | for i=1 ,SpellTime do | |
| 675 | c1.CFrame = c1.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 676 | c2.CFrame = c2.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 677 | c3.CFrame = c3.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 678 | c4.CFrame = c4.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 679 | c5.CFrame = c5.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 680 | c6.CFrame = c6.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 681 | wait() | |
| 682 | end | |
| 683 | ||
| 684 | chatfunc("A destructive force without equal!")
| |
| 685 | ||
| 686 | local c7 = Instance.new("Part",workspace)
| |
| 687 | c7.Name = "c7" | |
| 688 | c7.Size = Vector3.new(133.082, 0.1, 133.082) | |
| 689 | c7.Position = part.Position + Vector3.new(0,150,0) | |
| 690 | c7.CanCollide = false | |
| 691 | c7.Anchored = true | |
| 692 | c7.Transparency = 1 | |
| 693 | local d3 = Instance.new("Decal")
| |
| 694 | d3.Texture = id2 | |
| 695 | local d4 = Instance.new("Decal")
| |
| 696 | d4.Texture = id2 | |
| 697 | d3.Parent = c7 | |
| 698 | d3.Face = "Top" | |
| 699 | d4.Parent = c7 | |
| 700 | d4.Face = "Bottom" | |
| 701 | ||
| 702 | for i=1 ,SpellTime do | |
| 703 | c1.CFrame = c1.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 704 | c2.CFrame = c2.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 705 | c3.CFrame = c3.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 706 | c4.CFrame = c4.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 707 | c5.CFrame = c5.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 708 | c6.CFrame = c6.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 709 | c7.CFrame = c7.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 710 | wait() | |
| 711 | end | |
| 712 | ||
| 713 | chatfunc("Return all creation to cinders")
| |
| 714 | ||
| 715 | local c8 = Instance.new("Part",workspace)
| |
| 716 | c8.Name = "c8" | |
| 717 | c8.Size = Vector3.new(89.831, 0.1, 89.831) | |
| 718 | c8.Position = part.Position + Vector3.new(0,170,0) | |
| 719 | c8.CanCollide = false | |
| 720 | c8.Anchored = true | |
| 721 | c8.Transparency = 1 | |
| 722 | local d5 = Instance.new("Decal")
| |
| 723 | d5.Texture = id2 | |
| 724 | local d6 = Instance.new("Decal")
| |
| 725 | d6.Texture = id2 | |
| 726 | d5.Parent = c8 | |
| 727 | d5.Face = "Top" | |
| 728 | d6.Parent = c8 | |
| 729 | d6.Face = "Bottom" | |
| 730 | ||
| 731 | for i=1 ,SpellTime do | |
| 732 | c1.CFrame = c1.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 733 | c2.CFrame = c2.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 734 | c3.CFrame = c3.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 735 | c4.CFrame = c4.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 736 | c5.CFrame = c5.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 737 | c6.CFrame = c6.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 738 | c7.CFrame = c7.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 739 | c8.CFrame = c8.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 740 | wait() | |
| 741 | end | |
| 742 | ||
| 743 | chatfunc("And come frome the abyss!")
| |
| 744 | ||
| 745 | local c9 = Instance.new("Part",workspace)
| |
| 746 | c9.Name = "c9" | |
| 747 | c9.Size = Vector3.new(61.598, 0.1, 61.598) | |
| 748 | c9.Position = part.Position + Vector3.new(0,190,0) | |
| 749 | c9.CanCollide = false | |
| 750 | c9.Anchored = true | |
| 751 | c9.Transparency = 1 | |
| 752 | local d7 = Instance.new("Decal")
| |
| 753 | d7.Texture = id2 | |
| 754 | local d8 = Instance.new("Decal")
| |
| 755 | d8.Texture = id2 | |
| 756 | d7.Parent = c9 | |
| 757 | d7.Face = "Top" | |
| 758 | d8.Parent = c9 | |
| 759 | d8.Face = "Bottom" | |
| 760 | ||
| 761 | for i=1 ,SpellTime do | |
| 762 | c1.CFrame = c1.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 763 | c2.CFrame = c2.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 764 | c3.CFrame = c3.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 765 | c4.CFrame = c4.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 766 | c5.CFrame = c5.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 767 | c6.CFrame = c6.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 768 | c7.CFrame = c7.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 769 | c8.CFrame = c8.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 770 | c9.CFrame = c9.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 771 | wait() | |
| 772 | end | |
| 773 | ||
| 774 | chatfunc("This is the mightiest means of attack known to man, the ultimate attack magic!")
| |
| 775 | ||
| 776 | local c10 = Instance.new("Part",workspace)
| |
| 777 | c10.Name = "c10" | |
| 778 | c10.Size = Vector3.new(363.777, 0.1, 363.777) | |
| 779 | c10.Position = part.Position + Vector3.new(0,210,0) | |
| 780 | c10.CanCollide = false | |
| 781 | c10.Anchored = true | |
| 782 | c10.Transparency = 1 | |
| 783 | local d9 = Instance.new("Decal")
| |
| 784 | d9.Texture = id2 | |
| 785 | local d10 = Instance.new("Decal")
| |
| 786 | d10.Texture = id2 | |
| 787 | d9.Parent = c10 | |
| 788 | d9.Face = "Top" | |
| 789 | d10.Parent = c10 | |
| 790 | d10.Face = "Bottom" | |
| 791 | ||
| 792 | for i=1 ,SpellTime do | |
| 793 | c1.CFrame = c1.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 794 | c2.CFrame = c2.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 795 | c3.CFrame = c3.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 796 | c4.CFrame = c4.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 797 | c5.CFrame = c5.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 798 | c6.CFrame = c6.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 799 | c7.CFrame = c7.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 800 | c8.CFrame = c8.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 801 | c9.CFrame = c9.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 802 | c10.CFrame = c10.CFrame * CFrame.fromEulerAnglesXYZ(0, math.pi/100, 0) | |
| 803 | wait() | |
| 804 | end | |
| 805 | ||
| 806 | end | |
| 807 | ||
| 808 | function click(mouse) | |
| 809 | if enabled == false then | |
| 810 | enabled = true | |
| 811 | ||
| 812 | local ow = char.Humanoid.WalkSpeed | |
| 813 | local oj = char.Humanoid.JumpPower | |
| 814 | ||
| 815 | char.Humanoid.WalkSpeed = 0 | |
| 816 | ||
| 817 | tool.GripForward = GF | |
| 818 | tool.GripRight = GR | |
| 819 | ||
| 820 | local target = Instance.new('Part')
| |
| 821 | target.Transparency = 1 | |
| 822 | target.Anchored = true | |
| 823 | target.CanCollide = false | |
| 824 | target.Position = mouse.hit.p | |
| 825 | target.Parent = workspace | |
| 826 | target.Name = "target" | |
| 827 | ||
| 828 | local beam = Instance.new('Part')
| |
| 829 | beam.Shape = "Cylinder" | |
| 830 | beam.Position = target.Position | |
| 831 | beam.BrickColor = BrickColor.new('Really red')
| |
| 832 | beam.Material = Enum.Material.Neon | |
| 833 | beam.Anchored = true | |
| 834 | beam.CanCollide = false | |
| 835 | beam.Orientation = Vector3.new(0,0,90) | |
| 836 | beam.Size = Vector3.new(500,500,.2) | |
| 837 | beam.Parent = workspace | |
| 838 | beam.Name = "beam" | |
| 839 | ||
| 840 | effect(target) | |
| 841 | ||
| 842 | local sound = Instance.new('Sound')
| |
| 843 | sound.SoundId = "rbxassetid://762570073" | |
| 844 | sound.Volume = 5 | |
| 845 | sound.Parent = char.Head | |
| 846 | sound.Name = "talk" | |
| 847 | ||
| 848 | chatfunc("EXPLOSION!!!")
| |
| 849 | sound:Play() | |
| 850 | ||
| 851 | wait(1.6) | |
| 852 | ||
| 853 | local exps = Instance.new('Sound')
| |
| 854 | exps.SoundId = "rbxassetid://165970126" | |
| 855 | exps.Parent = target | |
| 856 | exps.Volume = 10 | |
| 857 | exps.Name = "expSFX" | |
| 858 | ||
| 859 | local exp = Instance.new("Explosion")
| |
| 860 | exp.Position = target.Position | |
| 861 | exp.Parent = game.Workspace | |
| 862 | exp.BlastRadius = 150 | |
| 863 | ||
| 864 | exps:play() | |
| 865 | ||
| 866 | workspace.c1:Destroy() | |
| 867 | workspace.c2:Destroy() | |
| 868 | workspace.c3:Destroy() | |
| 869 | workspace.c4:Destroy() | |
| 870 | workspace.c5:Destroy() | |
| 871 | workspace.c6:Destroy() | |
| 872 | workspace.c7:Destroy() | |
| 873 | workspace.c8:Destroy() | |
| 874 | workspace.c9:Destroy() | |
| 875 | workspace.c10:Destroy() | |
| 876 | ||
| 877 | boom(target) | |
| 878 | ||
| 879 | workspace.pp:Destroy() | |
| 880 | ||
| 881 | beam:Destroy() | |
| 882 | target:Destroy() | |
| 883 | sound:Destroy() | |
| 884 | exps:Destroy() | |
| 885 | ||
| 886 | wait(1) | |
| 887 | ||
| 888 | tool.GripForward = oringalGF | |
| 889 | tool.GripRight = oringalGR | |
| 890 | ||
| 891 | for i=1 , 60 do | |
| 892 | char.Humanoid.PlatformStand = true | |
| 893 | char.Humanoid.WalkSpeed = 0 | |
| 894 | char.Humanoid.JumpPower = 0 | |
| 895 | wait(1) | |
| 896 | end | |
| 897 | ||
| 898 | char.Humanoid.PlatformStand = false | |
| 899 | char.Humanoid.WalkSpeed = ow | |
| 900 | char.Humanoid.JumpPower = oj | |
| 901 | enabled = false | |
| 902 | end | |
| 903 | end | |
| 904 | ||
| 905 | function equipped(mouse) | |
| 906 | mouse.Button1Down:connect(function () click(mouse) end) | |
| 907 | end | |
| 908 | ||
| 909 | tool.Equipped:connect(equipped) | |
| 910 | end)) | |
| 911 | Part17.Parent = Tool0 | |
| 912 | Part17.Material = Enum.Material.Wood | |
| 913 | Part17.BrickColor = BrickColor.new("Burnt Sienna")
| |
| 914 | Part17.Rotation = Vector3.new(10.1599998, 0, -180) | |
| 915 | Part17.Anchored = true | |
| 916 | Part17.Size = Vector3.new(0.179999813, 0.0700000003, 0.160000041) | |
| 917 | Part17.CFrame = CFrame.new(72.5900116, 6.1364584, -50.8448219, -1, 0, 0, 0, -0.984318376, -0.176401064, 0, -0.176401064, 0.984318376) | |
| 918 | Part17.BottomSurface = Enum.SurfaceType.Smooth | |
| 919 | Part17.TopSurface = Enum.SurfaceType.Smooth | |
| 920 | Part17.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 921 | Part17.Position = Vector3.new(72.5900116, 6.1364584, -50.8448219) | |
| 922 | Part17.Orientation = Vector3.new(10.1599998, 0, 180) | |
| 923 | Part17.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 924 | Part18.Parent = Tool0 | |
| 925 | Part18.Material = Enum.Material.Wood | |
| 926 | Part18.BrickColor = BrickColor.new("Burnt Sienna")
| |
| 927 | Part18.Rotation = Vector3.new(45.7000008, 0, -180) | |
| 928 | Part18.Anchored = true | |
| 929 | Part18.Size = Vector3.new(0.199999809, 0.139998943, 0.499999881) | |
| 930 | Part18.CFrame = CFrame.new(72.6000061, 5.95947552, -50.6225662, -1, 0, 0, 0, -0.698380172, -0.715727091, 0, -0.715727091, 0.698380172) | |
| 931 | Part18.BottomSurface = Enum.SurfaceType.Smooth | |
| 932 | Part18.TopSurface = Enum.SurfaceType.Smooth | |
| 933 | Part18.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 934 | Part18.Position = Vector3.new(72.6000061, 5.95947552, -50.6225662) | |
| 935 | Part18.Orientation = Vector3.new(45.7000008, 0, 180) | |
| 936 | Part18.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 937 | Part19.Parent = Tool0 | |
| 938 | Part19.Material = Enum.Material.Wood | |
| 939 | Part19.BrickColor = BrickColor.new("Burnt Sienna")
| |
| 940 | Part19.Rotation = Vector3.new(77.9599991, 0, -180) | |
| 941 | Part19.Anchored = true | |
| 942 | Part19.Size = Vector3.new(0.199999809, 0.199998945, 0.310000032) | |
| 943 | Part19.CFrame = CFrame.new(72.6000061, 5.65559053, -50.4499931, -1, 0, 0, 0, -0.208563015, -0.978008986, 0, -0.978008986, 0.208563015) | |
| 944 | Part19.BottomSurface = Enum.SurfaceType.Smooth | |
| 945 | Part19.TopSurface = Enum.SurfaceType.Smooth | |
| 946 | Part19.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 947 | Part19.Position = Vector3.new(72.6000061, 5.65559053, -50.4499931) | |
| 948 | Part19.Orientation = Vector3.new(77.9599991, 0, 180) | |
| 949 | Part19.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 950 | Part20.Parent = Tool0 | |
| 951 | Part20.Material = Enum.Material.Wood | |
| 952 | Part20.BrickColor = BrickColor.new("Burnt Sienna")
| |
| 953 | Part20.Rotation = Vector3.new(89.5599976, 0, -180) | |
| 954 | Part20.Anchored = true | |
| 955 | Part20.Size = Vector3.new(0.199999809, 0.149998948, 0.439999938) | |
| 956 | Part20.CFrame = CFrame.new(72.6000061, 5.61545324, -50.4791603, -1, 0, 0, 0, -0.00771899521, -0.999970257, 0, -0.999970257, 0.00771899521) | |
| 957 | Part20.BottomSurface = Enum.SurfaceType.Smooth | |
| 958 | Part20.TopSurface = Enum.SurfaceType.Smooth | |
| 959 | Part20.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 960 | Part20.Position = Vector3.new(72.6000061, 5.61545324, -50.4791603) | |
| 961 | Part20.Orientation = Vector3.new(89.5599976, 0, 180) | |
| 962 | Part20.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 963 | Part21.Parent = Tool0 | |
| 964 | Part21.Material = Enum.Material.Wood | |
| 965 | Part21.BrickColor = BrickColor.new("Burnt Sienna")
| |
| 966 | Part21.Rotation = Vector3.new(106.119995, 0, -180) | |
| 967 | Part21.Anchored = true | |
| 968 | Part21.Size = Vector3.new(0.199999809, 0.199998945, 0.310000002) | |
| 969 | Part21.CFrame = CFrame.new(72.6000061, 5.42558908, -50.4499855, -1, 0, 0, 0, 0.277650088, -0.960682333, 0, -0.960682333, -0.277650088) | |
| 970 | Part21.BottomSurface = Enum.SurfaceType.Smooth | |
| 971 | Part21.TopSurface = Enum.SurfaceType.Smooth | |
| 972 | Part21.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 973 | Part21.Position = Vector3.new(72.6000061, 5.42558908, -50.4499855) | |
| 974 | Part21.Orientation = Vector3.new(73.8799973, 180, 0) | |
| 975 | Part21.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 976 | Part22.Parent = Tool0 | |
| 977 | Part22.Material = Enum.Material.Wood | |
| 978 | Part22.BrickColor = BrickColor.new("Burnt Sienna")
| |
| 979 | Part22.Rotation = Vector3.new(133.660004, 0, -180) | |
| 980 | Part22.Anchored = true | |
| 981 | Part22.Size = Vector3.new(0.199999809, 0.199998945, 0.549999654) | |
| 982 | Part22.CFrame = CFrame.new(72.6000061, 5.12030411, -50.6632805, -1, 0, 0, 0, 0.690404534, -0.723423481, 0, -0.723423481, -0.690404534) | |
| 983 | Part22.BottomSurface = Enum.SurfaceType.Smooth | |
| 984 | Part22.TopSurface = Enum.SurfaceType.Smooth | |
| 985 | Part22.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 986 | Part22.Position = Vector3.new(72.6000061, 5.12030411, -50.6632805) | |
| 987 | Part22.Orientation = Vector3.new(46.3400002, 180, 0) | |
| 988 | Part22.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 989 | Part23.Parent = Tool0 | |
| 990 | Part23.Material = Enum.Material.Wood | |
| 991 | Part23.BrickColor = BrickColor.new("Burnt Sienna")
| |
| 992 | Part23.Rotation = Vector3.new(125.360001, 0, -180) | |
| 993 | Part23.Anchored = true | |
| 994 | Part23.Size = Vector3.new(0.199999809, 0.139999986, 0.669999599) | |
| 995 | Part23.CFrame = CFrame.new(72.6000061, 5.22756338, -50.6340942, -1, 0, 0, 0, 0.578651071, -0.815575242, 0, -0.815575242, -0.578651071) | |
| 996 | Part23.BottomSurface = Enum.SurfaceType.Smooth | |
| 997 | Part23.TopSurface = Enum.SurfaceType.Smooth | |
| 998 | Part23.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 999 | Part23.Position = Vector3.new(72.6000061, 5.22756338, -50.6340942) | |
| 1000 | Part23.Orientation = Vector3.new(54.6399994, 180, 0) | |
| 1001 | Part23.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 1002 | Part24.Parent = Tool0 | |
| 1003 | Part24.Material = Enum.Material.Wood | |
| 1004 | Part24.BrickColor = BrickColor.new("Burnt Sienna")
| |
| 1005 | Part24.Rotation = Vector3.new(125.860001, 0, -180) | |
| 1006 | Part24.Anchored = true | |
| 1007 | Part24.Size = Vector3.new(0.189999804, 0.269998908, 0.129999653) | |
| 1008 | Part24.CFrame = CFrame.new(72.5950089, 5.13980055, -51.0601616, -1, 0, 0, 0, 0.585875213, -0.81040132, 0, -0.81040132, -0.585875213) | |
| 1009 | Part24.BottomSurface = Enum.SurfaceType.Smooth | |
| 1010 | Part24.TopSurface = Enum.SurfaceType.Smooth | |
| 1011 | Part24.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 1012 | Part24.Position = Vector3.new(72.5950089, 5.13980055, -51.0601616) | |
| 1013 | Part24.Orientation = Vector3.new(54.1399994, 180, 0) | |
| 1014 | Part24.Color = Color3.new(0.415686, 0.223529, 0.0352941) | |
| 1015 | for i,v in pairs(mas:GetChildren()) do | |
| 1016 | v.Parent = game:GetService("Players").LocalPlayer.Backpack
| |
| 1017 | pcall(function() v:MakeJoints() end) | |
| 1018 | end | |
| 1019 | mas:Destroy() | |
| 1020 | for i,v in pairs(cors) do | |
| 1021 | spawn(function() | |
| 1022 | pcall(v) | |
| 1023 | end) | |
| 1024 | end |