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 | ||
| 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 | --One Punch Man Script | |
| 146 | p = game.Players.LocalPlayer | |
| 147 | char = p.Character | |
| 148 | des = false | |
| 149 | fling = true | |
| 150 | dot = false | |
| 151 | falling = false | |
| 152 | jump = true | |
| 153 | --char.Shirt:Remove() | |
| 154 | --for i,v in pairs(char:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
| |
| 155 | for i,v in pairs(char:GetChildren()) do if v:IsA("Hat") then v.Handle:Remove() end end
| |
| 156 | wait()--shirt = Instance.new("Shirt", char)
| |
| 157 | --shirt.Name = "Shirt" | |
| 158 | --pants = Instance.new("Pants", char)
| |
| 159 | --pants.Name = "Pants" | |
| 160 | ||
| 161 | --char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=451927425" | |
| 162 | --char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=236412261" | |
| 163 | tp = true | |
| 164 | shoot = true | |
| 165 | hum = char.Humanoid | |
| 166 | punch = true | |
| 167 | neckp = char.Torso.Neck.C0 | |
| 168 | neck = char.Torso.Neck | |
| 169 | hum.MaxHealth = 9999999999999999999999999999999999999999 | |
| 170 | wait() | |
| 171 | hum.Health =hum.MaxHealth | |
| 172 | des = false | |
| 173 | root=char.HumanoidRootPart | |
| 174 | torso = char.Torso | |
| 175 | char.Head.face.Texture = "rbxassetid://332768867" | |
| 176 | local ChatService = game:GetService("Chat")
| |
| 177 | local player = game.Players.LocalPlayer | |
| 178 | lig = Instance.new("PointLight",player.Character.Torso)
| |
| 179 | lig.Color=Color3.new(255,0,0) | |
| 180 | m=player:GetMouse() | |
| 181 | bb = Instance.new("BillboardGui",player.Character.Head)
| |
| 182 | bb.Enabled = true | |
| 183 | function newRay(start,face,range,wat) | |
| 184 | local rey=Ray.new(start.p,(face.p-start.p).Unit*range) | |
| 185 | hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat) | |
| 186 | return rey,hit,pos | |
| 187 | end | |
| 188 | aa1={}
| |
| 189 | torso=game.Players.LocalPlayer.Character.Torso | |
| 190 | ||
| 191 | local WorldUp = Vector3.new(0,1,0) | |
| 192 | function look2(Vec1,Vec2) | |
| 193 | local Orig = Vec1 | |
| 194 | Vec1 = Vec1+Vector3.new(0,1,0) | |
| 195 | Vec2 = Vec2+Vector3.new(0,1,0) | |
| 196 | local Forward = (Vec2-Vec1).unit | |
| 197 | local Up = (WorldUp-WorldUp:Dot(Forward)*Forward).unit | |
| 198 | local Right = Up:Cross(Forward).unit | |
| 199 | Forward = -Forward | |
| 200 | Right = -Right | |
| 201 | return CFrame.new(Orig.X,Orig.Y,Orig.Z,Right.X,Up.X,Forward.X,Right.Y,Up.Y,Forward.Y,Right.Z,Up.Z,Forward.Z) | |
| 202 | end | |
| 203 | ||
| 204 | function look(CFr,Vec2) | |
| 205 | local A = Vector3.new(0,0,0) | |
| 206 | local B = CFr:inverse()*Vec2 | |
| 207 | local CF = look2(A,Vector3.new(A.X,B.Y,B.Z)) | |
| 208 | if B.Z > 0 then | |
| 209 | CF = CFr*(CF*CFrame.Angles(0,0,math.pi)) | |
| 210 | elseif B.Z == 0 then | |
| 211 | if B.Y > 0 then | |
| 212 | CF = CFr*CFrame.Angles(math.pi/2,0,0) | |
| 213 | elseif B.Y < 0 then | |
| 214 | CF = CFr*CFrame.Angles(-math.pi/2,0,0) | |
| 215 | else | |
| 216 | CF = CFr | |
| 217 | end | |
| 218 | end | |
| 219 | local _,_,_,_,X,_,_,Y,_,_,Z,_ = CF:components() | |
| 220 | local Up = Vector3.new(X,Y,Z) | |
| 221 | local Forward = (Vec2-CFr.p).unit | |
| 222 | local Right = Up:Cross(Forward) | |
| 223 | Forward = -Forward | |
| 224 | Right = -Right | |
| 225 | return CFrame.new(CFr.X,CFr.Y,CFr.Z,Right.X,Up.X,Forward.X,Right.Y,Up.Y,Forward.Y,Right.Z,Up.Z,Forward.Z) | |
| 226 | end | |
| 227 | ||
| 228 | function simulate(j,d,m,r,t) | |
| 229 | local joint = j | |
| 230 | for i,v in ipairs(t) do | |
| 231 | if v[1]:FindFirstChild("Weld") then
| |
| 232 | local stiff = m.CFrame.lookVector*0.03 | |
| 233 | if i > 1 then joint = t[i-1][1].CFrame*CFrame.new(0,0,d*.5) end | |
| 234 | local dir = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).unit | |
| 235 | local dis = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).magnitude | |
| 236 | local pos = joint.p+(dir*(d*0.5)) | |
| 237 | --if v[1].CFrame.y<=workspace.Base.CFrame.y then pos = joint.p+(dir*(d*.5)) end | |
| 238 | local inv = v[1].Weld.Part0.CFrame | |
| 239 | local rel1 = inv:inverse()*pos | |
| 240 | local rel2 = inv:inverse()*(pos-(dir*dis)) | |
| 241 | local cf = look(CFrame.new(rel1),rel2)--CFrame.new(pos,pos-(dir*dis))*CFrame.fromEulerAnglesXYZ(r.x,r.y,r.z) | |
| 242 | v[1].Weld.C0 = cf | |
| 243 | v[2] = inv*cf | |
| 244 | --v[1].CFrame = cf | |
| 245 | end | |
| 246 | end | |
| 247 | end | |
| 248 | for i=1,8 do | |
| 249 | local p = Instance.new("Part",char)
| |
| 250 | p.Anchored = false | |
| 251 | p.BrickColor = BrickColor.new("Institutional white")
| |
| 252 | p.CanCollide = false | |
| 253 | p.FormFactor="Custom" | |
| 254 | p.Material = "SmoothPlastic" | |
| 255 | p.TopSurface = "SmoothNoOutlines" | |
| 256 | p.BottomSurface = "SmoothNoOutlines" | |
| 257 | p.RightSurface = "SmoothNoOutlines" | |
| 258 | p.LeftSurface = "SmoothNoOutlines" | |
| 259 | p.FrontSurface = "SmoothNoOutlines" | |
| 260 | p.BackSurface = "SmoothNoOutlines" | |
| 261 | ||
| 262 | p.Size=Vector3.new(2,.2,0.2) | |
| 263 | p:BreakJoints() -- sometimes the parts are stuck to something so you have to breakjoints them | |
| 264 | mesh = Instance.new("BlockMesh",p)
| |
| 265 | mesh.Scale = Vector3.new(1,1,4) | |
| 266 | local w = Instance.new("Motor6D",p)
| |
| 267 | w.Part0 = aa1[i-1] and aa1[i-1][1] or torso | |
| 268 | w.Part1 = p | |
| 269 | w.Name = "Weld" | |
| 270 | --table.insert(aa1,p) | |
| 271 | aa1[i] = {p,p.CFrame}
| |
| 272 | ||
| 273 | end | |
| 274 | game:service"RunService".Stepped:connect(function() | |
| 275 | simulate(torso.CFrame*CFrame.new(0,0.9,.5),.6,torso,Vector3.new(),aa1) | |
| 276 | end) | |
| 277 | bb.AlwaysOnTop = true | |
| 278 | bb.Size = UDim2.new(0,200,0,50) | |
| 279 | bb.StudsOffset = Vector3.new(0,1,0) | |
| 280 | gui=Instance.new("TextBox",bb)
| |
| 281 | gui.Text = "* " | |
| 282 | gui.Size = UDim2.new(0,133,0,45) | |
| 283 | gui.Position=UDim2.new(0,57,0,-40) | |
| 284 | gui.TextColor3 = Color3.new(255,255,255) | |
| 285 | gui.BackgroundColor3=Color3.new(0,0,0) | |
| 286 | gui.TextWrapped = true | |
| 287 | gui.TextScaled = true | |
| 288 | gui.TextXAlignment = "Left" | |
| 289 | gui.TextYAlignment = "Top" | |
| 290 | gui.Visible = false | |
| 291 | gui.BorderColor3 = Color3.new(0,0,0) | |
| 292 | punch2 = true | |
| 293 | gui1=Instance.new("TextButton",bb)
| |
| 294 | gui1.Position=UDim2.new(0,5,0,-43) | |
| 295 | gui1.Size = UDim2.new(0,190,0,51) | |
| 296 | ||
| 297 | gui1.TextColor3 = Color3.new(255,255,255) | |
| 298 | gui1.BackgroundColor3=Color3.new(255,255,255) | |
| 299 | jump2 = true | |
| 300 | gui1.Visible = false | |
| 301 | img = Instance.new("ImageLabel",bb)
| |
| 302 | img.Size = UDim2.new(0,46,0,47) | |
| 303 | img.Position = UDim2.new(0,10,0,-41) | |
| 304 | img.Image = "rbxassetid://447301252" | |
| 305 | img.BorderColor3 = Color3.new(0,0,0) | |
| 306 | img.Visible = false | |
| 307 | soka = Instance.new("Sound",char)
| |
| 308 | soka.SoundId = "http://www.roblox.com/asset/?id = 447199232" | |
| 309 | soka.Volume = 1 | |
| 310 | boom = Instance.new("Sound",char)
| |
| 311 | boom.SoundId = "http://www.roblox.com/asset/?id = 447041606" | |
| 312 | boom.Volume = 1 | |
| 313 | boom2 = Instance.new("Sound",char)
| |
| 314 | boom2.SoundId = "http://www.roblox.com/asset/?id = 449025737" | |
| 315 | boom2.Volume = 1 | |
| 316 | boom3 = Instance.new("Sound",char)
| |
| 317 | boom3.SoundId = "http://www.roblox.com/asset/?id = 450719019" | |
| 318 | boom3.Volume = 1 | |
| 319 | tps = Instance.new("Sound",char)
| |
| 320 | tps.SoundId = "http://www.roblox.com/asset/?id = 449860746" | |
| 321 | tps.Volume = 1 | |
| 322 | asd = Instance.new("Sound",char)
| |
| 323 | asd.SoundId = "http://www.roblox.com/asset/?id = 447310433" | |
| 324 | asd.Volume =1 | |
| 325 | asd1 = Instance.new("Sound",char)
| |
| 326 | asd1.SoundId = "http://www.roblox.com/asset/?id = 358280695" | |
| 327 | ||
| 328 | asd2 = Instance.new("Sound",char)
| |
| 329 | asd2.SoundId = "http://www.roblox.com/asset/?id = 386713054" | |
| 330 | asd2.Looped = true | |
| 331 | asd2.Volume = 5 | |
| 332 | asd3 = Instance.new("Sound",char)
| |
| 333 | asd3.SoundId = "http://www.roblox.com/asset/?id = 378387996" | |
| 334 | asd3.Looped = true | |
| 335 | asd4 = Instance.new("Sound",char)
| |
| 336 | asd4.SoundId = "http://www.roblox.com/asset/?id = 401258325" | |
| 337 | asd4.Looped = true | |
| 338 | asd5 = Instance.new("Sound",char)
| |
| 339 | asd5.SoundId = "http://www.roblox.com/asset/?id = 362252261" | |
| 340 | asd5.Looped = true | |
| 341 | gas = Instance.new("Sound",char)
| |
| 342 | gas.SoundId = "http://www.roblox.com/asset/?id = 345052019" | |
| 343 | asd6 = Instance.new("Sound",char)
| |
| 344 | asd6.SoundId = "http://www.roblox.com/asset/?id = 401258325" | |
| 345 | asd6.Looped = true | |
| 346 | function play(play) | |
| 347 | asd:Play() | |
| 348 | wait(0.05) | |
| 349 | --asd1:Play() | |
| 350 | end | |
| 351 | ||
| 352 | ||
| 353 | ||
| 354 | ------------ | |
| 355 | ------------------------- | |
| 356 | ||
| 357 | function stream(origin,dir,length,size) | |
| 358 | local parts = {}
| |
| 359 | for i = 1,length do | |
| 360 | local p = Instance.new("Part",char)
| |
| 361 | p.Anchored = true | |
| 362 | p.Transparency = 0.5 | |
| 363 | p.TopSurface = 0 | |
| 364 | p.BottomSurface = 0 | |
| 365 | p.CanCollide = false | |
| 366 | p.BrickColor = BrickColor.new("Institutional white")
| |
| 367 | p.Size = Vector3.new(10,30,10) -- for now | |
| 368 | p.CFrame = CFrame.new(origin+dir*i*size)*CFrame.Angles(math.random()*math.pi,math.random()*math.pi,math.random()*math.pi) | |
| 369 | parts[i] = {p,CFrame.Angles(math.random()*math.pi/5,math.random()*math.pi/5,math.random()*math.pi/5)}
| |
| 370 | game:GetService("Debris"):AddItem(p,3)
| |
| 371 | end | |
| 372 | Spawn(function() | |
| 373 | while parts do | |
| 374 | for i,v in pairs(parts) do | |
| 375 | if v[1].Parent == char then | |
| 376 | v[1].CFrame = v[1].CFrame*v[2] | |
| 377 | else | |
| 378 | parts = nil | |
| 379 | break | |
| 380 | end | |
| 381 | end | |
| 382 | wait(0.02) | |
| 383 | end | |
| 384 | end) | |
| 385 | end | |
| 386 | ||
| 387 | --[[-- listen for their chatting | |
| 388 | player.Chatted:connect(function(message) | |
| 389 | a = string.len(message) | |
| 390 | gui.Text = "" | |
| 391 | gui.Visible = true | |
| 392 | gui1.Visible = true | |
| 393 | des = false | |
| 394 | img.Visible = true | |
| 395 | print(a) | |
| 396 | if dot == false then | |
| 397 | gui.Text = "" | |
| 398 | for i = 1,string.len(message) do | |
| 399 | gui.Text =gui.Text..message:sub(i,i) | |
| 400 | play() | |
| 401 | ||
| 402 | end | |
| 403 | end | |
| 404 | ||
| 405 | ||
| 406 | des = true | |
| 407 | end)]]-- | |
| 408 | m.KeyDown:connect(function(k) | |
| 409 | if k == "g" then | |
| 410 | asd2:Play() | |
| 411 | ||
| 412 | ||
| 413 | end | |
| 414 | end) | |
| 415 | ||
| 416 | m.KeyDown:connect(function(k) | |
| 417 | if k == "r" then | |
| 418 | ||
| 419 | asd4:Play() | |
| 420 | end | |
| 421 | end) | |
| 422 | m.KeyDown:connect(function(k) | |
| 423 | if k == "q" then | |
| 424 | ||
| 425 | asd3:Play() | |
| 426 | end | |
| 427 | end) | |
| 428 | m.KeyDown:connect(function(k) | |
| 429 | if k == "z" then | |
| 430 | img.Image = "rbxassetid://332766052" | |
| 431 | ||
| 432 | end | |
| 433 | end) | |
| 434 | m.KeyDown:connect(function(k) | |
| 435 | if k == "c" then | |
| 436 | img.Image = "rbxassetid://447301252" | |
| 437 | ||
| 438 | end | |
| 439 | end) | |
| 440 | m.KeyDown:connect(function(k) | |
| 441 | if k == "b" then | |
| 442 | ||
| 443 | asd6:Play() | |
| 444 | end | |
| 445 | end) | |
| 446 | mouse = p:GetMouse() | |
| 447 | m.KeyDown:connect(function(k) | |
| 448 | if k:byte() == 48 then | |
| 449 | ||
| 450 | hum.WalkSpeed = 100 | |
| 451 | end | |
| 452 | end) | |
| 453 | m.KeyDown:connect(function(k) | |
| 454 | if k:byte() == 50 then | |
| 455 | ||
| 456 | soka:Play() | |
| 457 | end | |
| 458 | end) | |
| 459 | m.KeyDown:connect(function(k) | |
| 460 | if k:byte() == 52 then | |
| 461 | ||
| 462 | char.Head.face.Texture = "rbxassetid://444037452" | |
| 463 | end | |
| 464 | end) | |
| 465 | m.KeyDown:connect(function(k) | |
| 466 | if k:byte() == 51 then | |
| 467 | ||
| 468 | char.Head.face.Texture = "rbxassetid://332768867" | |
| 469 | end | |
| 470 | end) | |
| 471 | m.KeyUp:connect(function(k) | |
| 472 | if k:byte() == 48 then | |
| 473 | ||
| 474 | hum.WalkSpeed = 16 | |
| 475 | end | |
| 476 | end) | |
| 477 | p.Chatted:connect(function(m) | |
| 478 | if m == "Okay." then | |
| 479 | soka:Play() | |
| 480 | end | |
| 481 | end) | |
| 482 | m.KeyDown:connect(function(k) | |
| 483 | if k == "x" then | |
| 484 | if des == true then | |
| 485 | gui.Visible = false | |
| 486 | gui.Text = "* " | |
| 487 | gui1.Visible = false | |
| 488 | img.Visible = false | |
| 489 | end | |
| 490 | end | |
| 491 | end) | |
| 492 | m.KeyDown:connect(function(key) | |
| 493 | if key == "j" then | |
| 494 | if tp == true then | |
| 495 | tp = false | |
| 496 | tps:Play() | |
| 497 | char.Head.face.Parent = game.Lighting | |
| 498 | for i,v in pairs(char:GetChildren()) do if v:IsA("Part") then v.Transparency = 1
| |
| 499 | end | |
| 500 | ||
| 501 | end | |
| 502 | wait(0.5) | |
| 503 | for i,v in pairs(char:GetChildren()) do if v:IsA("Part") then v.Transparency = 0
| |
| 504 | end | |
| 505 | ||
| 506 | end | |
| 507 | char.HumanoidRootPart.CFrame = mouse.Hit * CFrame.new(0, 3, 0) | |
| 508 | char.HumanoidRootPart.Transparency = 1 | |
| 509 | game.Lighting.face.Parent = char.Head | |
| 510 | wait(0.2) | |
| 511 | ||
| 512 | tp = true | |
| 513 | ||
| 514 | ||
| 515 | end | |
| 516 | end | |
| 517 | end) | |
| 518 | ||
| 519 | ||
| 520 | m.KeyDown:connect(function(key) | |
| 521 | if key == "t" then | |
| 522 | if punch2 == true then | |
| 523 | punch2 = false | |
| 524 | punch = false | |
| 525 | ||
| 526 | local ChatService = game:GetService("Chat")
| |
| 527 | ||
| 528 | neck.C0 = neck.C0 * CFrame.Angles(0.3,0,0) | |
| 529 | ChatService:Chat(char.Head, "Mind if I get Serious?") | |
| 530 | wait(1) | |
| 531 | local ChatService = game:GetService("Chat")
| |
| 532 | ||
| 533 | ||
| 534 | ChatService:Chat(char.Head ,"Killer Move: Serious Series...") | |
| 535 | wait(1) | |
| 536 | local ChatService = game:GetService("Chat")
| |
| 537 | ||
| 538 | ||
| 539 | ChatService:Chat(char.Head, "SERIOUS PUNCH.") | |
| 540 | neck.C0 = neckp | |
| 541 | wait(0.6) | |
| 542 | org = char.Torso["Left Shoulder"].C0 | |
| 543 | char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0 * CFrame.new(-0.3,0,0) * CFrame.Angles(0,0,math.rad(-90)) | |
| 544 | wait() | |
| 545 | killbrick2 = Instance.new("Part",char)
| |
| 546 | killbrick2.Size = Vector3.new(80,80,9000) | |
| 547 | killbrick2.Transparency = 1 | |
| 548 | ||
| 549 | killbrick2.CanCollide = true | |
| 550 | wait(0.1) | |
| 551 | killbrick2.CanCollide = false | |
| 552 | ||
| 553 | killbrick2.Anchored = true | |
| 554 | ||
| 555 | killbrick2.CFrame = char.Torso.CFrame * CFrame.new(0,0,-1005) | |
| 556 | ||
| 557 | killbrick2.Touched:connect(function(h) | |
| 558 | local x = h.Parent:FindFirstChild("Humanoid")
| |
| 559 | if x then | |
| 560 | if x.Parent.Name == game.Players.LocalPlayer.Name then | |
| 561 | safe = true | |
| 562 | else safe = false | |
| 563 | end | |
| 564 | if x then | |
| 565 | if safe == false then | |
| 566 | h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * 900 | |
| 567 | local bodyforc = Instance.new("BodyForce", h.Parent.Torso)
| |
| 568 | boom:Play() | |
| 569 | bodyforc.force = Vector3.new(0, h.Parent.Torso:GetMass() * 196.1, 0) | |
| 570 | ||
| 571 | ||
| 572 | wait(0.2) | |
| 573 | x.Parent:BreakJoints() | |
| 574 | wait() | |
| 575 | safe = true | |
| 576 | end | |
| 577 | end | |
| 578 | end | |
| 579 | end) | |
| 580 | ||
| 581 | ||
| 582 | ||
| 583 | ||
| 584 | ||
| 585 | ||
| 586 | ||
| 587 | ||
| 588 | local rng = Instance.new("Part", char)
| |
| 589 | rng.Anchored = true | |
| 590 | rng.BrickColor = BrickColor.new("Institutional white")
| |
| 591 | rng.CanCollide = false | |
| 592 | rng.FormFactor = 3 | |
| 593 | rng.Name = "Ring" | |
| 594 | rng.Size = Vector3.new(1, 1, 1) | |
| 595 | rng.Transparency = 0.8 | |
| 596 | rng.TopSurface = 0 | |
| 597 | rng.BottomSurface = 0 | |
| 598 | rng.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0) | |
| 599 | --rng.Rotation = Vector3.new(math.pi/2,0,0) | |
| 600 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 601 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 602 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 603 | rngm.Scale = Vector3.new(1, 1.3, 2) | |
| 604 | local rng1 = Instance.new("Part", char)
| |
| 605 | rng1.Anchored = true | |
| 606 | rng1.BrickColor = BrickColor.new("Institutional white")
| |
| 607 | rng1.CanCollide = false | |
| 608 | rng1.FormFactor = 3 | |
| 609 | rng1.Name = "Ring" | |
| 610 | rng1.Size = Vector3.new(1, 1, 1) | |
| 611 | rng1.Transparency = 0.8 | |
| 612 | rng1.TopSurface = 0 | |
| 613 | rng1.BottomSurface = 0 | |
| 614 | rng1.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0) | |
| 615 | --rng1.Rotation = Vector3.new(math.pi/2,0,0) | |
| 616 | rng1.CFrame = rng1.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 617 | local rngm1 = Instance.new("SpecialMesh", rng1)
| |
| 618 | rngm1.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 619 | rngm1.Scale = Vector3.new(1, 1.3, 2) | |
| 620 | ||
| 621 | local p = (torso.CFrame*CFrame.new(-20,0,3)) | |
| 622 | stream(p.p,((p*Vector3.new(-0.7,0,1))-p.p).unit,90,5) -- 20 is number of parts, 6 is distance between each one | |
| 623 | local p = (torso.CFrame*CFrame.new(20,0,3)) | |
| 624 | stream(p.p,((p*Vector3.new(0.7,0,1))-p.p).unit,90,5) -- same here | |
| 625 | ||
| 626 | local rng2 = Instance.new("Part", char)
| |
| 627 | rng2.Anchored = true | |
| 628 | rng2.BrickColor = BrickColor.new("Institutional white")
| |
| 629 | rng2.CanCollide = false | |
| 630 | rng2.FormFactor = 3 | |
| 631 | rng2.Name = "Ring" | |
| 632 | rng2.Size = Vector3.new(1, 1, 1) | |
| 633 | rng2.Transparency = 0.8 | |
| 634 | rng2.TopSurface = 0 | |
| 635 | rng2.BottomSurface = 0 | |
| 636 | rng2.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0) | |
| 637 | --rng1.Rotation = Vector3.new(math.pi/2,0,0) | |
| 638 | rng2.CFrame = rng2.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 639 | local rngm2 = Instance.new("SpecialMesh", rng2)
| |
| 640 | rngm2.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 641 | rngm2.Scale = Vector3.new(1, 1.3, 2) | |
| 642 | wait(0.1) | |
| 643 | ||
| 644 | boom3:Play() | |
| 645 | coroutine.wrap(function() | |
| 646 | for i = 1, 35, 0.5 do | |
| 647 | ||
| 648 | ||
| 649 | ||
| 650 | ||
| 651 | ||
| 652 | rngm.Scale = Vector3.new(50 + i*2, 10 + i*2, 2.5+ i*4) | |
| 653 | rngm1.Scale = Vector3.new(50 + i*2, 1.4 + i*2, 1.4+ i*4) | |
| 654 | rngm2.Scale = Vector3.new(50 + i*2, 10 + i*2, 1.2+ i*4) | |
| 655 | ||
| 656 | wait() | |
| 657 | end | |
| 658 | wait() | |
| 659 | rng:Destroy() | |
| 660 | rng1:Destroy() | |
| 661 | rng2:Destroy() | |
| 662 | killbrick2:Remove() | |
| 663 | wait(0.5) | |
| 664 | char.Torso["Left Shoulder"].C0 = org | |
| 665 | wait(1) | |
| 666 | punch2 = true | |
| 667 | punch = true | |
| 668 | wait() | |
| 669 | ||
| 670 | ||
| 671 | end)() | |
| 672 | ||
| 673 | ||
| 674 | ||
| 675 | end | |
| 676 | ||
| 677 | ||
| 678 | wait(.1) | |
| 679 | ||
| 680 | ||
| 681 | end | |
| 682 | end) | |
| 683 | ||
| 684 | ||
| 685 | ||
| 686 | ||
| 687 | ||
| 688 | m.KeyDown:connect(function(key) | |
| 689 | if key == "k" then | |
| 690 | if punch == true then | |
| 691 | punch = false | |
| 692 | org = char.Torso["Left Shoulder"].C0 | |
| 693 | char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0 * CFrame.new(-0.3,0,0) * CFrame.Angles(0,0,math.rad(-90)) | |
| 694 | killbrick = Instance.new("Part",char)
| |
| 695 | killbrick.Size = Vector3.new(5,1,5) | |
| 696 | killbrick.Transparency = 1 | |
| 697 | killbrick:BreakJoints() | |
| 698 | killbrick.CanCollide = false | |
| 699 | local wel = Instance.new("Weld",killbrick)
| |
| 700 | wel.Part0 = killbrick | |
| 701 | wel.Part1 = char["Left Arm"] | |
| 702 | wel.C0 = CFrame.new(0,1,0) | |
| 703 | force = 90 | |
| 704 | ||
| 705 | killbrick.Touched:connect(function(h) | |
| 706 | local x = h.Parent.Humanoid | |
| 707 | if x.Health >= 6000 then | |
| 708 | fling = false | |
| 709 | end | |
| 710 | if x.Health < 6000 then | |
| 711 | fling = true | |
| 712 | end | |
| 713 | local stop = h.Parent.Torso.Velocity | |
| 714 | if x.Parent.Name == game.Players.LocalPlayer.Name then | |
| 715 | safe = true | |
| 716 | else safe = false | |
| 717 | end | |
| 718 | if x then | |
| 719 | if safe == false then | |
| 720 | if fling == true then | |
| 721 | force = 900 | |
| 722 | ||
| 723 | end | |
| 724 | if fling == false then | |
| 725 | force = 200 | |
| 726 | end | |
| 727 | ||
| 728 | ||
| 729 | h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * force | |
| 730 | local bodyforc = Instance.new("BodyForce", h.Parent.Torso)
| |
| 731 | boom:Play() | |
| 732 | bodyforc.force = Vector3.new(0, h.Parent.Torso:GetMass() * 196.1, 0) | |
| 733 | ||
| 734 | ||
| 735 | wait(0.2) | |
| 736 | x:TakeDamage(5000) | |
| 737 | wait() | |
| 738 | safe = true | |
| 739 | bodyforc:Remove() | |
| 740 | h.Parent.Torso.Velocity = stop | |
| 741 | ||
| 742 | end | |
| 743 | end | |
| 744 | end) | |
| 745 | ||
| 746 | ||
| 747 | ||
| 748 | ||
| 749 | ||
| 750 | ||
| 751 | ||
| 752 | ||
| 753 | ||
| 754 | ||
| 755 | local rng = Instance.new("Part", char)
| |
| 756 | rng.Anchored = true | |
| 757 | rng.BrickColor = BrickColor.new("Institutional white")
| |
| 758 | rng.CanCollide = false | |
| 759 | rng.FormFactor = 3 | |
| 760 | rng.Name = "Ring" | |
| 761 | rng.Size = Vector3.new(1, 1, 1) | |
| 762 | rng.Transparency = 0.8 | |
| 763 | rng.TopSurface = 0 | |
| 764 | rng.BottomSurface = 0 | |
| 765 | rng.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0) | |
| 766 | --rng.Rotation = Vector3.new(math.pi/2,0,0) | |
| 767 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 768 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 769 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 770 | rngm.Scale = Vector3.new(1, 1.3, 2) | |
| 771 | wait(0.1) | |
| 772 | ||
| 773 | boom2:Play() | |
| 774 | coroutine.wrap(function() | |
| 775 | for i = 1, 10, .4 do | |
| 776 | rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1) | |
| 777 | ||
| 778 | wait() | |
| 779 | end | |
| 780 | wait() | |
| 781 | rng:Destroy() | |
| 782 | killbrick:Remove() | |
| 783 | wait(0.5) | |
| 784 | char.Torso["Left Shoulder"].C0 = org | |
| 785 | wait(1) | |
| 786 | ||
| 787 | punch = true | |
| 788 | wait() | |
| 789 | end)() | |
| 790 | ||
| 791 | ||
| 792 | ||
| 793 | end | |
| 794 | ||
| 795 | ||
| 796 | wait(.1) | |
| 797 | ||
| 798 | ||
| 799 | end | |
| 800 | end) | |
| 801 | ||
| 802 | ||
| 803 | ||
| 804 | ||
| 805 | ||
| 806 | ||
| 807 | ||
| 808 | ||
| 809 | ||
| 810 | ||
| 811 | ||
| 812 | ||
| 813 | ||
| 814 | ||
| 815 | m.KeyDown:connect(function(key) | |
| 816 | if key == "m" then | |
| 817 | if jump == true then | |
| 818 | jump = false | |
| 819 | ||
| 820 | ||
| 821 | local rng = Instance.new("Part", char)
| |
| 822 | rng.Anchored = true | |
| 823 | rng.BrickColor = BrickColor.new("Institutional white")
| |
| 824 | rng.CanCollide = false | |
| 825 | rng.FormFactor = 3 | |
| 826 | rng.Name = "Ring" | |
| 827 | rng.Size = Vector3.new(1, 1, 1) | |
| 828 | rng.Transparency = 0.35 | |
| 829 | rng.TopSurface = 0 | |
| 830 | rng.BottomSurface = 0 | |
| 831 | rng.Position = torso.Position - Vector3.new(0,2,0) | |
| 832 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 833 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 834 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 835 | rngm.Scale = Vector3.new(1, 1.3, 2) | |
| 836 | wait(0.1) | |
| 837 | BV = Instance.new("BodyVelocity", torso)
| |
| 838 | BV.maxForce = Vector3.new(0,20000,0) | |
| 839 | BV.P = 1000 | |
| 840 | BV.velocity = Vector3.new(0,100,0) | |
| 841 | boom:Play() | |
| 842 | coroutine.wrap(function() | |
| 843 | for i = 1, 60, 2 do | |
| 844 | rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1) | |
| 845 | rng.Transparency = i/60 | |
| 846 | wait() | |
| 847 | end | |
| 848 | wait() | |
| 849 | rng:Destroy() | |
| 850 | ||
| 851 | hum.WalkSpeed = 50 | |
| 852 | wait(1) | |
| 853 | ||
| 854 | for i,v in pairs(torso:GetChildren()) do if v:IsA("BodyVelocity") then
| |
| 855 | v:Destroy() jumping2 = true falling = true wait(0.3) jumping2 = false falling = false wait(1.7) jump = true hum.WalkSpeed = 16 falling = false | |
| 856 | end end | |
| 857 | wait() | |
| 858 | end)() | |
| 859 | ||
| 860 | ||
| 861 | ||
| 862 | end | |
| 863 | ||
| 864 | ||
| 865 | wait(.1) | |
| 866 | ||
| 867 | ||
| 868 | end | |
| 869 | end) | |
| 870 | ||
| 871 | ||
| 872 | ||
| 873 | ||
| 874 | ||
| 875 | ||
| 876 | m.KeyDown:connect(function(key) | |
| 877 | if key == "n" then | |
| 878 | ||
| 879 | if falling == true then | |
| 880 | falling = false | |
| 881 | if jumping2 == true then | |
| 882 | jumping2 = false | |
| 883 | jump = false | |
| 884 | BV = Instance.new("BodyVelocity", torso)
| |
| 885 | BV.maxForce = Vector3.new(0,-20000,0) | |
| 886 | BV.P = -1000 | |
| 887 | BV.velocity = Vector3.new(0,-70,0) | |
| 888 | wait(0.6) | |
| 889 | local rng = Instance.new("Part", char)
| |
| 890 | rng.Anchored = true | |
| 891 | rng.BrickColor = BrickColor.new("Institutional white")
| |
| 892 | rng.CanCollide = false | |
| 893 | rng.FormFactor = 3 | |
| 894 | rng.Name = "Ring" | |
| 895 | rng.Size = Vector3.new(1, 1, 1) | |
| 896 | rng.Transparency = 0.35 | |
| 897 | rng.TopSurface = 0 | |
| 898 | rng.BottomSurface = 0 | |
| 899 | rng.Position = torso.Position - Vector3.new(0,2,0) | |
| 900 | rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 901 | local rngm = Instance.new("SpecialMesh", rng)
| |
| 902 | rngm.MeshId = "http://www.roblox.com/asset/?id=3270017" | |
| 903 | rngm.Scale = Vector3.new(1, 1.3, 2) | |
| 904 | ||
| 905 | ||
| 906 | boom:Play() | |
| 907 | coroutine.wrap(function() | |
| 908 | for i = 1, 60, 2 do | |
| 909 | rngm.Scale = Vector3.new(2 + i*2, 2 + i*2, 1) | |
| 910 | rng.Transparency = i/60 | |
| 911 | wait() | |
| 912 | end | |
| 913 | wait() | |
| 914 | rng:Destroy() | |
| 915 | ||
| 916 | ||
| 917 | ||
| 918 | ||
| 919 | for i,v in pairs(torso:GetChildren()) do if v:IsA("BodyVelocity") then
| |
| 920 | v:Destroy() wait(2) jumping2 = true hum.WalkSpeed = 16 | |
| 921 | end end | |
| 922 | wait() | |
| 923 | end)() | |
| 924 | ||
| 925 | ||
| 926 | ||
| 927 | end | |
| 928 | ||
| 929 | ||
| 930 | wait(.1) | |
| 931 | ||
| 932 | end | |
| 933 | end | |
| 934 | end) | |
| 935 | m.KeyDown:connect(function(k) | |
| 936 | if k == "f" then | |
| 937 | asd3:Stop() | |
| 938 | asd2:Stop() | |
| 939 | asd4:Stop() | |
| 940 | asd6:Stop() | |
| 941 | asd5:Stop() | |
| 942 | end | |
| 943 | end) | |
| 944 | ------------ | |
| 945 | -- ~CLarramore 2016 |