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,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 3 | local RealPlayer = Player | |
| 4 | do print("FE Compatibility code by Mokiros");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer
| |
| 5 | script.Parent = InternalData.RealOwner.Character | |
| 6 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event
| |
| 7 | local function createObject (connections, index) | |
| 8 | local proxy = newproxy (true);local meta = getmetatable (proxy); | |
| 9 | local runbind = function (self, i, ...) connections[i]:Fire (...); end; | |
| 10 | while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end;
| |
| 11 | meta.__index = function (self, i) | |
| 12 | if (i == 'TriggerEvent') then return runbind end; | |
| 13 | return connections[i] and connections[i].Event or index[i]; | |
| 14 | end; | |
| 15 | meta.__newindex = index;meta.__metatable = false;return proxy | |
| 16 | end; | |
| 17 | local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up"},{["Target"] = nil;["Hit"] = CFrame.new()})
| |
| 18 | local UserInputService = createObject({"InputBegan","InputEnded"},{})
| |
| 19 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
| |
| 20 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
| |
| 21 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
| 22 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
| 23 | if FiredBy ~= InternalData.RealOwner then return end | |
| 24 | if Input.MouseEvent then | |
| 25 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
| 26 | elseif Input.Sound then | |
| 27 | if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end | |
| 28 | else | |
| 29 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
| 30 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end | |
| 31 | for _,Action in pairs(ContextActionService.Actions) do | |
| 32 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
| 33 | end | |
| 34 | Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
| 35 | end | |
| 36 | end) | |
| 37 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
| 38 | Event.Parent = NLS([[ | |
| 39 | local Player = owner; | |
| 40 | local Sounds = {};
| |
| 41 | local Event = script:WaitForChild("UserInput");
| |
| 42 | local UserInputService = game:GetService("UserInputService");
| |
| 43 | local Mouse = Player:GetMouse(); | |
| 44 | local Input = function(Input,gameProcessedEvent) | |
| 45 | if gameProcessedEvent then return end | |
| 46 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
| |
| 47 | end | |
| 48 | Event.OnClientEvent:connect(function(Args) | |
| 49 | if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end | |
| 50 | end) | |
| 51 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
| 52 | local Hit,Target | |
| 53 | while wait(1/30) do | |
| 54 | for x,Sound in pairs(Sounds) do | |
| 55 | if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end
| |
| 56 | end | |
| 57 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
| 58 | Hit = Mouse.Hit;Target = Mouse.Target; | |
| 59 | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
| |
| 60 | end | |
| 61 | end | |
| 62 | ]],InternalData.RealOwner.Character) | |
| 63 | end | |
| 64 | InternalData.NewOwner = setmetatable({},{
| |
| 65 | __index = function (self,Index) | |
| 66 | local Type = type(InternalData.RealOwner[Index]) | |
| 67 | if Type == "function" then | |
| 68 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
| 69 | return function (self)return InternalData["Mouse"] end | |
| 70 | end | |
| 71 | return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end | |
| 72 | elseif Index == "FakePlayer" then | |
| 73 | return true | |
| 74 | end | |
| 75 | return InternalData.RealOwner[Index] | |
| 76 | end; | |
| 77 | __tostring = function(self) return tostring(InternalData.RealOwner) end | |
| 78 | }) | |
| 79 | --LoadLibrary("RbxUtility").Create
| |
| 80 | InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library) | |
| 81 | if Library == "RbxUtility" then | |
| 82 | return setmetatable({},{
| |
| 83 | __tostring = function() return "RbxUtility" end; | |
| 84 | __index = function(self, Index) | |
| 85 | if Index:lower() == "create" then | |
| 86 | return function(Type) | |
| 87 | return function(Data) | |
| 88 | Data = Data or {}
| |
| 89 | local Inst = Instance.new(Type) | |
| 90 | for x,y in pairs(Data) do | |
| 91 | if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end | |
| 92 | if y == owner then y = InternalData.RealOwner end | |
| 93 | Inst[x] = y | |
| 94 | end | |
| 95 | return Inst | |
| 96 | end | |
| 97 | end | |
| 98 | end | |
| 99 | return InternalData.LoadLibrary(Library)[Index] | |
| 100 | end | |
| 101 | }) | |
| 102 | end | |
| 103 | return InternalData.LoadLibrary(Library) | |
| 104 | end | |
| 105 | InternalData.RealInstance = Instance;Instance = setmetatable({},{
| |
| 106 | __index = function (self,Index) | |
| 107 | if Index:lower() == 'new' then | |
| 108 | return function (Type, Parent) | |
| 109 | if Parent == owner then Parent = InternalData.RealOwner end | |
| 110 | if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end | |
| 111 | local Real = InternalData.RealInstance.new(Type,Parent) | |
| 112 | if not Type then return end | |
| 113 | if Type == "BillboardGui" then | |
| 114 | local ToReturn = setmetatable({},{
| |
| 115 | __index = function (self,Index) | |
| 116 | if type(Real[Index]) == "function" then | |
| 117 | if Index:lower() == "clone" then | |
| 118 | return function (self) | |
| 119 | local Real = Real:Clone() | |
| 120 | local ToReturn = setmetatable({RealObject = Real},{
| |
| 121 | __index = function (self,Index) | |
| 122 | if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end | |
| 123 | return Real[Index] | |
| 124 | end; | |
| 125 | __newindex = function (self,Index,Value) | |
| 126 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
| 127 | if Value == owner then Value = InternalData.RealOwner end | |
| 128 | Real[Index] = Value | |
| 129 | end; | |
| 130 | __tostring = function(self) return tostring(Real) end; | |
| 131 | }) | |
| 132 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
| 133 | end | |
| 134 | end | |
| 135 | return function (self,...) return Real[Index](Real,...)end | |
| 136 | end | |
| 137 | return Real[Index] | |
| 138 | end; | |
| 139 | __newindex = function (self,Index,Value) | |
| 140 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
| 141 | if Value == owner then Value = InternalData.RealOwner end | |
| 142 | Real[Index] = Value | |
| 143 | end; | |
| 144 | __tostring = function(self) return tostring(Real) end; | |
| 145 | }) | |
| 146 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
| 147 | elseif Type:lower() == "sound" then | |
| 148 | Real.Parent = owner.Character; | |
| 149 | local ToReturn = setmetatable({RealObject = Real},{
| |
| 150 | __index = function (self,Index) | |
| 151 | if Index:lower() == "playbackloudness" then | |
| 152 | return InternalData.SoundLoudness[Real] or 0 | |
| 153 | elseif type(Real[Index]) == "function" then | |
| 154 | if Index:lower() == "clone" then | |
| 155 | return function (self) | |
| 156 | local Real = Real:Clone() | |
| 157 | local ToReturn = setmetatable({},{
| |
| 158 | __index = function (self,Index) | |
| 159 | if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end | |
| 160 | return Real[Index] | |
| 161 | end; | |
| 162 | __newindex = function (self,Index,Value) | |
| 163 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
| 164 | if Value == owner then Value = InternalData.RealOwner end | |
| 165 | Real[Index] = Value | |
| 166 | end; | |
| 167 | __tostring = function(self) return tostring(Real) end; | |
| 168 | }) | |
| 169 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
| 170 | end | |
| 171 | end | |
| 172 | return function (self,...) return Real[Index](Real,...)end | |
| 173 | end | |
| 174 | return Real[Index] | |
| 175 | end; | |
| 176 | __newindex = function (self,Index,Value) | |
| 177 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
| 178 | if Value == owner then Value = InternalData.RealOwner end | |
| 179 | Real[Index] = Value | |
| 180 | end; | |
| 181 | __tostring = function(self) return tostring(Real) end; | |
| 182 | }) | |
| 183 | InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn;
| |
| 184 | else | |
| 185 | local ToReturn = setmetatable({RealObject = Real},{
| |
| 186 | __index = function (self,Index) | |
| 187 | if type(Real[Index]) == "function" then | |
| 188 | if Index:lower() == "clone" then | |
| 189 | return function (self) | |
| 190 | local Real = Real:Clone() | |
| 191 | local ToReturn = setmetatable({},{
| |
| 192 | __index = function (self,Index) | |
| 193 | if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end | |
| 194 | return Real[Index] | |
| 195 | end; | |
| 196 | __newindex = function (self,Index,Value) | |
| 197 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
| 198 | if Value == owner then Value = InternalData.RealOwner end | |
| 199 | Real[Index] = Value | |
| 200 | end; | |
| 201 | __tostring = function(self) return tostring(Real) end; | |
| 202 | }) | |
| 203 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
| 204 | end | |
| 205 | end | |
| 206 | return function (self,...) return Real[Index](Real,...)end | |
| 207 | end | |
| 208 | return Real[Index] | |
| 209 | end; | |
| 210 | __newindex = function (self,Index,Value) | |
| 211 | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end | |
| 212 | if Value == owner then Value = InternalData.RealOwner end | |
| 213 | Real[Index] = Value | |
| 214 | end; | |
| 215 | __tostring = function(self) return tostring(Real) end; | |
| 216 | }) | |
| 217 | InternalData.RealObjs[ToReturn] = Real;return ToReturn; | |
| 218 | end | |
| 219 | end | |
| 220 | end | |
| 221 | return InternalData.RealInstance[Index] | |
| 222 | end; | |
| 223 | __tostring = function(self) return tostring(InternalData.RealInstance) end; | |
| 224 | }); | |
| 225 | InternalData.RealGame = game;game = setmetatable({},{
| |
| 226 | __index = function (self,Index) | |
| 227 | if InternalData.RealGame[Index] then | |
| 228 | local Type = type(InternalData.RealGame[Index]) | |
| 229 | if Type == "function" then | |
| 230 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
| 231 | return function (self,Service) | |
| 232 | local FakeServices = {
| |
| 233 | ["players"] = function() | |
| 234 | return setmetatable({},{
| |
| 235 | __index = function (self2,Index2) | |
| 236 | local RealService = InternalData.RealGame:GetService(Service) | |
| 237 | local Type2 = type(RealService[Index2]) | |
| 238 | if Type2 == "function" then | |
| 239 | return function (self,...) return RealService[Index2](RealService,...)end | |
| 240 | else | |
| 241 | if Index2:lower() == "localplayer" then return InternalData.NewOwner end | |
| 242 | return RealService[Index2] | |
| 243 | end | |
| 244 | end; | |
| 245 | __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end | |
| 246 | }) | |
| 247 | end; | |
| 248 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
| 249 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
| 250 | ["debris"] = function() | |
| 251 | return setmetatable({},{
| |
| 252 | __index = function(self2,Index2) | |
| 253 | local RealService = InternalData.RealGame:GetService(Service) | |
| 254 | local Type2 = type(RealService[Index2]) | |
| 255 | if Type2 == "function" then | |
| 256 | if Index2:lower() == "additem" then | |
| 257 | return function (self,Item,Time) | |
| 258 | if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end | |
| 259 | return RealService:AddItem(Item,Time) | |
| 260 | end | |
| 261 | end | |
| 262 | return function (self,...) return RealService[Index2](RealService,...) end | |
| 263 | end | |
| 264 | return RealService[Index2] | |
| 265 | end; | |
| 266 | __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end
| |
| 267 | }) | |
| 268 | end; | |
| 269 | ["runservice"] = function() | |
| 270 | return setmetatable({},{
| |
| 271 | __index = function(self2,Index2) | |
| 272 | local RealService = InternalData.RealGame:GetService(Service) | |
| 273 | local Type2 = type(RealService[Index2]) | |
| 274 | if Type2 == "function" then | |
| 275 | return function (self,...) return RealService[Index2](RealService,...) end | |
| 276 | else | |
| 277 | local RunServices = {
| |
| 278 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end;
| |
| 279 | ["renderstepped"] = function() return RealService["Stepped"] end | |
| 280 | } | |
| 281 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
| 282 | return RealService[Index2] | |
| 283 | end | |
| 284 | end; | |
| 285 | __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end
| |
| 286 | }) | |
| 287 | end | |
| 288 | } | |
| 289 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
| 290 | return InternalData.RealGame:GetService(Service) | |
| 291 | end | |
| 292 | end | |
| 293 | return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end | |
| 294 | else | |
| 295 | if game:GetService(Index) then return game:GetService(Index) end | |
| 296 | return InternalData.RealGame[Index] | |
| 297 | end | |
| 298 | end | |
| 299 | return nil | |
| 300 | end; | |
| 301 | __tostring = function(self) return tostring(InternalData.game) end | |
| 302 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!")
| |
| 303 | ||
| 304 | --Created with PenguinAnonymous's compiler | |
| 305 | --PenguinAnonymous is not responsible for damages caused to your game | |
| 306 | --Please stop using my plugin to create abusive scripts | |
| 307 | --Errors: | |
| 308 | local runDummyScript = function(f,scri) | |
| 309 | local oldenv = getfenv(f) | |
| 310 | local newenv = setmetatable({}, {
| |
| 311 | __index = function(_, k) | |
| 312 | if k:lower() == 'script' then | |
| 313 | return scri | |
| 314 | else | |
| 315 | return oldenv[k] | |
| 316 | end | |
| 317 | end | |
| 318 | }) | |
| 319 | setfenv(f, newenv) | |
| 320 | ypcall(function() f() end) | |
| 321 | end | |
| 322 | cors = {}
| |
| 323 | mas = Instance.new("Model",game:GetService("Lighting"))
| |
| 324 | mas.Name = "CompiledModel" | |
| 325 | o1 = Instance.new("LocalScript")
| |
| 326 | o1.Name = "Wubstep" | |
| 327 | o1.Parent = mas | |
| 328 | table.insert(cors,function() | |
| 329 | wait() | |
| 330 | runDummyScript(function() | |
| 331 | ||
| 332 | function clerp(c1,c2,al) | |
| 333 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
| |
| 334 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
| |
| 335 | for i,v in pairs(com1) do | |
| 336 | com1[i] = v+(com2[i]-v)*al | |
| 337 | end | |
| 338 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
| 339 | end | |
| 340 | ||
| 341 | plr = game:service'Players'.LocalPlayer | |
| 342 | char = plr.Character | |
| 343 | mouse = plr:GetMouse() | |
| 344 | humanoid = char:findFirstChild("Humanoid")
| |
| 345 | torso = char:findFirstChild("Torso")
| |
| 346 | head = char.Head | |
| 347 | ra = char:findFirstChild("Right Arm")
| |
| 348 | la = char:findFirstChild("Left Arm")
| |
| 349 | rl = char:findFirstChild("Right Leg")
| |
| 350 | ll = char:findFirstChild("Left Leg")
| |
| 351 | rs = torso:findFirstChild("Right Shoulder")
| |
| 352 | ls = torso:findFirstChild("Left Shoulder")
| |
| 353 | rh = torso:findFirstChild("Right Hip")
| |
| 354 | lh = torso:findFirstChild("Left Hip")
| |
| 355 | neck = torso:findFirstChild("Neck")
| |
| 356 | rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
| |
| 357 | rootpart = char:findFirstChild("HumanoidRootPart")
| |
| 358 | camera = workspace.CurrentCamera | |
| 359 | anim = char:findFirstChild("Animate")
| |
| 360 | ||
| 361 | if char:FindFirstChild("Animate") then
| |
| 362 | char.Animate:Destroy() | |
| 363 | end | |
| 364 | humanoid.Animator:Destroy() | |
| 365 | ||
| 366 | local rm = Instance.new("Weld", torso)
| |
| 367 | rm.C0 = CFrame.new(1.5, 0.5, 0) | |
| 368 | rm.C1 = CFrame.new(0, 0.5, 0) | |
| 369 | rm.Part0 = torso | |
| 370 | rm.Part1 = ra | |
| 371 | ||
| 372 | local lm = Instance.new("Weld", torso)
| |
| 373 | lm.C0 = CFrame.new(-1.5, 0.5, 0) | |
| 374 | lm.C1 = CFrame.new(0, 0.5, 0) | |
| 375 | lm.Part0 = torso | |
| 376 | lm.Part1 = la | |
| 377 | ||
| 378 | local rlegm = Instance.new("Weld", torso)
| |
| 379 | rlegm.C0 = CFrame.new(0.5, -1, 0) | |
| 380 | rlegm.C1 = CFrame.new(0, 1, 0) | |
| 381 | rlegm.Part0 = torso | |
| 382 | rlegm.Part1 = rl | |
| 383 | local llegm = Instance.new("Weld", torso)
| |
| 384 | llegm.C0 = CFrame.new(-0.5, -1, 0) | |
| 385 | llegm.C1 = CFrame.new(0, 1, 0) | |
| 386 | llegm.Part0 = torso | |
| 387 | llegm.Part1 = ll | |
| 388 | ||
| 389 | neck.C0 = CFrame.new(0, 1, 0) | |
| 390 | neck.C1 = CFrame.new(0, -.5, 0) | |
| 391 | ||
| 392 | rj.C0 = CFrame.new() | |
| 393 | rj.C1 = CFrame.new() | |
| 394 | ||
| 395 | local Rbx = LoadLibrary("RbxUtility")
| |
| 396 | local Create = Rbx.Create | |
| 397 | ||
| 398 | GUI = Create("ScreenGui"){
| |
| 399 | Parent = plr.PlayerGui, | |
| 400 | Enabled = true, | |
| 401 | ResetOnSpawn = true, | |
| 402 | Name = "WubstepGUI" | |
| 403 | } | |
| 404 | ||
| 405 | Main = Create("Frame"){
| |
| 406 | Parent = GUI, | |
| 407 | BackgroundColor3 = Color3.new(50/255,50/255,50/255), | |
| 408 | BorderColor3 = Color3.new(27/255,42/255,53/255), | |
| 409 | BorderSizePixel = 0, | |
| 410 | BackgroundTransparency = 0, | |
| 411 | Size = UDim2.new(0.2,0,0.5,0), | |
| 412 | Position = UDim2.new(-1.2,0,0.25,0), | |
| 413 | ZIndex = 1, | |
| 414 | Visible = true, | |
| 415 | Selectable = false, | |
| 416 | Name = "Main" | |
| 417 | } | |
| 418 | ||
| 419 | IDBox = Create("TextBox"){
| |
| 420 | Parent = Main, | |
| 421 | BackgroundColor3 = Color3.new(9/255,9/255,9/255), | |
| 422 | BackgroundTransparency = 0.7, | |
| 423 | BorderColor3 = Color3.new(255/255,255/255,255/255), | |
| 424 | BorderSizePixel = 5, | |
| 425 | Name = "ID", | |
| 426 | Position = UDim2.new(0.05,0,0.03,0), | |
| 427 | Selectable = true, | |
| 428 | ShowNativeInput = true, | |
| 429 | ClearTextOnFocus = true, | |
| 430 | Size = UDim2.new(0.9,0,0.15,0), | |
| 431 | Visible = true, | |
| 432 | ZIndex = 2, | |
| 433 | Text = "ID", | |
| 434 | TextWrapped = true, | |
| 435 | TextScaled = true, | |
| 436 | TextColor3 = Color3.new(255/255,255/255,255/255), | |
| 437 | TextStrokeTransparency = 0, | |
| 438 | TextStrokeColor3 = Color3.new(0,0,0) | |
| 439 | } | |
| 440 | ||
| 441 | PlayButton = Create("TextButton"){
| |
| 442 | Parent = Main, | |
| 443 | BackgroundTransparency = 0, | |
| 444 | BackgroundColor3 = Color3.new(9/255,9/255,9/255), | |
| 445 | BorderSizePixel = 0, | |
| 446 | BorderColor3 = Color3.new(27/255,42/255,53/255), | |
| 447 | Name = "Play", | |
| 448 | Modal = false, | |
| 449 | Position = UDim2.new(0.05,0,0.205,0), | |
| 450 | Size = UDim2.new(0.9,0,0.1,0), | |
| 451 | ZIndex = 2, | |
| 452 | Text = "Play", | |
| 453 | TextScaled = true, | |
| 454 | TextStrokeColor3 = Color3.new(0,0,0), | |
| 455 | TextStrokeTransparency = 1, | |
| 456 | TextColor3 = Color3.new(255/255,255/255,255/255), | |
| 457 | TextWrapped = true | |
| 458 | } | |
| 459 | ||
| 460 | VolumeInc = Create("TextButton"){
| |
| 461 | Parent = Main, | |
| 462 | BackgroundColor3 = Color3.new(0,7/255,48/255), | |
| 463 | BorderSizePixel = 2, | |
| 464 | Modal = false, | |
| 465 | Name = "+", | |
| 466 | Position = UDim2.new(0.75,0,0.325,0), | |
| 467 | Size = UDim2.new(0.2,0,0.34,0), | |
| 468 | Visible = true, | |
| 469 | TextScaled = true, | |
| 470 | TextColor3 = Color3.new(255/255,255/255,255/255), | |
| 471 | TextStrokeTransparency = 1, | |
| 472 | Text = "+" | |
| 473 | } | |
| 474 | ||
| 475 | VolumeDec = Create("TextButton"){
| |
| 476 | Parent = Main, | |
| 477 | BackgroundColor3 = Color3.new(48/255,0,0), | |
| 478 | BorderSizePixel = 2, | |
| 479 | Modal = false, | |
| 480 | Name = "+", | |
| 481 | Position = UDim2.new(0.05,0,0.325,0), | |
| 482 | Size = UDim2.new(0.2,0,0.34,0), | |
| 483 | Visible = true, | |
| 484 | TextScaled = true, | |
| 485 | TextColor3 = Color3.new(255/255,255/255,255/255), | |
| 486 | TextStrokeTransparency = 1, | |
| 487 | Text = "-" | |
| 488 | } | |
| 489 | ||
| 490 | VolText = Create("TextLabel"){
| |
| 491 | Parent = Main, | |
| 492 | BackgroundColor3 = Color3.new(255/255,255/255,255/255), | |
| 493 | BackgroundTransparency = 1, | |
| 494 | BorderColor3 = Color3.new(27/255,42/255,53/255), | |
| 495 | BorderSizePixel = 0, | |
| 496 | Name = "Volume", | |
| 497 | Position = UDim2.new(0.175,0,0.325,0), | |
| 498 | Size = UDim2.new(0.64,0,0.1,0), | |
| 499 | Visible = true, | |
| 500 | Text = "Volume", | |
| 501 | TextColor3 = Color3.new(255/255,255/255,255/255), | |
| 502 | TextScaled = true, | |
| 503 | TextStrokeColor3 = Color3.new(0,0,0), | |
| 504 | TextStrokeTransparency = 0 | |
| 505 | } | |
| 506 | ||
| 507 | VolNum = Create("TextLabel"){
| |
| 508 | Parent = Main, | |
| 509 | BackgroundTransparency = 1, | |
| 510 | BorderSizePixel = 0, | |
| 511 | Name = "###", | |
| 512 | Position = UDim2.new(0.175,0,0.45,0), | |
| 513 | Size = UDim2.new(0.64,0,0.2,0), | |
| 514 | TextStrokeTransparency = 0, | |
| 515 | TextColor3 = Color3.new(255/255,255/255,255/255), | |
| 516 | Text = "1", | |
| 517 | TextScaled = true | |
| 518 | } | |
| 519 | ||
| 520 | HeadphText = Create("TextLabel"){
| |
| 521 | Parent = Main, | |
| 522 | BackgroundTransparency = 1, | |
| 523 | BorderSizePixel = 0, | |
| 524 | Name = "Headphones", | |
| 525 | Position = UDim2.new(0.05,0,0.7,0), | |
| 526 | Size = UDim2.new(0.64,0,0.1,0), | |
| 527 | TextStrokeTransparency = 0, | |
| 528 | TextColor3 = Color3.new(255/255,255/255,255/255), | |
| 529 | Text = "Headphones", | |
| 530 | TextScaled = true | |
| 531 | } | |
| 532 | ||
| 533 | NotesText = Create("TextLabel"){
| |
| 534 | Parent = Main, | |
| 535 | BackgroundTransparency = 1, | |
| 536 | BorderSizePixel = 0, | |
| 537 | Name = "Notes", | |
| 538 | Position = UDim2.new(0.05,0,0.85,0), | |
| 539 | Size = UDim2.new(0.64,0,0.1,0), | |
| 540 | TextStrokeTransparency = 0, | |
| 541 | TextColor3 = Color3.new(255/255,255/255,255/255), | |
| 542 | Text = "Notes", | |
| 543 | TextScaled = true | |
| 544 | } | |
| 545 | ||
| 546 | Check1 = Create("TextButton"){
| |
| 547 | Parent = Main, | |
| 548 | BackgroundTransparency = 0.7, | |
| 549 | BackgroundColor3 = Color3.new(50/255,50/255,50/255), | |
| 550 | BorderSizePixel = 5, | |
| 551 | BorderColor3 = Color3.new(0,0,0), | |
| 552 | Name = "Check1", | |
| 553 | Modal = false, | |
| 554 | Position = UDim2.new(0.78,0,0.7,0), | |
| 555 | Size = UDim2.new(0.13,0,0.1,0), | |
| 556 | ZIndex = 2, | |
| 557 | Text = "", | |
| 558 | TextScaled = true, | |
| 559 | TextStrokeColor3 = Color3.new(0,0,0), | |
| 560 | TextStrokeTransparency = 1, | |
| 561 | TextColor3 = Color3.new(255/255,255/255,255/255), | |
| 562 | TextWrapped = true | |
| 563 | } | |
| 564 | ||
| 565 | Check2 = Create("TextButton"){
| |
| 566 | Parent = Main, | |
| 567 | BackgroundTransparency = 0.7, | |
| 568 | BackgroundColor3 = Color3.new(50/255,50/255,50/255), | |
| 569 | BorderSizePixel = 5, | |
| 570 | BorderColor3 = Color3.new(0,0,0), | |
| 571 | Name = "Check2", | |
| 572 | Modal = false, | |
| 573 | Position = UDim2.new(0.78,0,0.85,0), | |
| 574 | Size = UDim2.new(0.13,0,0.1,0), | |
| 575 | ZIndex = 2, | |
| 576 | Text = "", | |
| 577 | TextScaled = true, | |
| 578 | TextStrokeColor3 = Color3.new(0,0,0), | |
| 579 | TextStrokeTransparency = 1, | |
| 580 | TextColor3 = Color3.new(255/255,255/255,255/255), | |
| 581 | TextWrapped = true | |
| 582 | } | |
| 583 | ||
| 584 | Checkmark1 = Create("ImageLabel"){
| |
| 585 | Parent = Check1, | |
| 586 | Size = UDim2.new(1,0,1,0), | |
| 587 | Position = UDim2.new(0,0,0,0), | |
| 588 | BorderSizePixel = 0, | |
| 589 | BackgroundTransparency = 1, | |
| 590 | Image = "rbxassetid://55565289", | |
| 591 | } | |
| 592 | ||
| 593 | Checkmark2 = Create("ImageLabel"){
| |
| 594 | Parent = Check2, | |
| 595 | Size = UDim2.new(1,0,1,0), | |
| 596 | Position = UDim2.new(0,0,0,0), | |
| 597 | BorderSizePixel = 0, | |
| 598 | BackgroundTransparency = 1, | |
| 599 | Image = "rbxassetid://55565289", | |
| 600 | } | |
| 601 | ||
| 602 | OpenButton = Create("TextButton"){
| |
| 603 | Parent = GUI, | |
| 604 | BackgroundTransparency = 0.7, | |
| 605 | BackgroundColor3 = Color3.new(50/255,50/255,50/255), | |
| 606 | BorderSizePixel = 5, | |
| 607 | BorderColor3 = Color3.new(0,0,0), | |
| 608 | Name = "Open/Close", | |
| 609 | Modal = false, | |
| 610 | Position = UDim2.new(0,0,0.7,0), | |
| 611 | Size = UDim2.new(0.13,0,0.1,0), | |
| 612 | ZIndex = 2, | |
| 613 | Text = "Wubstep", | |
| 614 | TextScaled = true, | |
| 615 | TextStrokeColor3 = Color3.new(0,0,0), | |
| 616 | TextStrokeTransparency = 0, | |
| 617 | TextColor3 = Color3.new(255/255,255/255,255/255), | |
| 618 | TextWrapped = true | |
| 619 | } | |
| 620 | ||
| 621 | local Open = false | |
| 622 | local Debounce = false | |
| 623 | OpenButton.MouseButton1Down:connect(function() | |
| 624 | if Open == false and Debounce == false then | |
| 625 | Debounce = true | |
| 626 | Main:TweenPosition(UDim2.new(0.4, 0, 0.25, 0),"Out","Quad",3,false) | |
| 627 | repeat wait() until Main.Position == UDim2.new(0.4,0,0.25,0) | |
| 628 | wait(0.2) | |
| 629 | Open = true | |
| 630 | Debounce = false | |
| 631 | elseif Open == true and Debounce == false then | |
| 632 | Debounce = true | |
| 633 | Main:TweenPosition(UDim2.new(-1.2, 0, 0.25, 0),"Out","Quad",5,false) | |
| 634 | repeat wait() until Main.Position == UDim2.new(-1.2,0,0.25,0) | |
| 635 | wait(0.2) | |
| 636 | Open = false | |
| 637 | Debounce = false | |
| 638 | end | |
| 639 | end) | |
| 640 | ||
| 641 | local Volume = 1 | |
| 642 | VolumeInc.MouseButton1Down:connect(function() | |
| 643 | if Volume < 10 then | |
| 644 | Volume = Volume + 0.5 | |
| 645 | end | |
| 646 | end) | |
| 647 | VolumeDec.MouseButton1Down:connect(function() | |
| 648 | if Volume > 0 then | |
| 649 | Volume = Volume - 0.5 | |
| 650 | end | |
| 651 | end) | |
| 652 | ||
| 653 | humanoid.WalkSpeed = 7 | |
| 654 | ||
| 655 | local s = Instance.new('Sound', head)
| |
| 656 | s.Volume = Volume | |
| 657 | s.SoundId = "rbxassetid://0" --EG: Music to my ears | |
| 658 | s.Looped = true | |
| 659 | s:play() | |
| 660 | ||
| 661 | PlayButton.MouseButton1Down:connect(function() | |
| 662 | s.SoundId = "rbxassetid://"..IDBox.Text | |
| 663 | end) | |
| 664 | ||
| 665 | rsc0 = rm.C0 | |
| 666 | lsc0 = lm.C0 | |
| 667 | neckc0 = neck.C0 | |
| 668 | rootc0 = rj.C0 | |
| 669 | llc0 = llegm.C0 | |
| 670 | rlc0 = rlegm.C0 | |
| 671 | speed = 0.25 | |
| 672 | angle = 0 | |
| 673 | anglespeed = 1 | |
| 674 | ||
| 675 | local Hat = Instance.new('Part', char)
| |
| 676 | Hat.FormFactor = 'Custom' | |
| 677 | Hat.Size = Vector3.new(1,1,1) | |
| 678 | Hat.CanCollide = false | |
| 679 | Hat.Locked = true | |
| 680 | Hat.Name = 'Headphones' | |
| 681 | Hat:breakJoints() | |
| 682 | Hat.TopSurface = 0 | |
| 683 | Hat.BottomSurface = 0 | |
| 684 | local Mesh = Instance.new('SpecialMesh', Hat)
| |
| 685 | Mesh.MeshId = "http://www.roblox.com/asset/?id=1051545" | |
| 686 | Mesh.TextureId = "rbxassetid://186142634" | |
| 687 | ||
| 688 | local Weld = Instance.new('Weld', Hat)
| |
| 689 | Weld.Part0 = Hat | |
| 690 | Weld.Part1 = head | |
| 691 | Weld.C1 = CFrame.new(0, .2, 0) | |
| 692 | ||
| 693 | local HP = true | |
| 694 | local Not = true | |
| 695 | Check1.MouseButton1Down:connect(function() | |
| 696 | if HP == true then | |
| 697 | HP = false | |
| 698 | Hat.Transparency = 0 | |
| 699 | Checkmark1.Visible = true | |
| 700 | elseif HP == false then | |
| 701 | HP = true | |
| 702 | Hat.Transparency = 1 | |
| 703 | Checkmark1.Visible = false | |
| 704 | end | |
| 705 | end) | |
| 706 | Check2.MouseButton1Down:connect(function() | |
| 707 | if Not == true then | |
| 708 | Not = false | |
| 709 | Checkmark2.Visible = false | |
| 710 | elseif Not == false then | |
| 711 | Not = true | |
| 712 | Checkmark2.Visible = true | |
| 713 | end | |
| 714 | end) | |
| 715 | ||
| 716 | local SplashEffect = Instance.new('Part')
| |
| 717 | Instance.new("CylinderMesh", SplashEffect);
| |
| 718 | SplashEffect.Size = Vector3.new(.2,.2,.2) | |
| 719 | SplashEffect.Anchored = true | |
| 720 | SplashEffect.Transparency = 1 | |
| 721 | SplashEffect.CanCollide = false | |
| 722 | SplashEffect.Locked = true | |
| 723 | SplashEffect.Material = "Neon" | |
| 724 | local surfacegui = Instance.new('SurfaceGui', SplashEffect)
| |
| 725 | surfacegui.Face = 'Top' | |
| 726 | surfacegui.CanvasSize = Vector2.new(800,800) | |
| 727 | local SplashEffectImage = Instance.new('ImageLabel', surfacegui)
| |
| 728 | SplashEffectImage.Size = UDim2.new(1,0,1,0) | |
| 729 | SplashEffectImage.Image = "rbxassetid://166139049" | |
| 730 | SplashEffectImage.BackgroundTransparency = 1 | |
| 731 | SplashEffectImage.Name = 'Effect' | |
| 732 | SplashEffectImage.ImageColor3 = Color3.new(223/255, 0, 255/255) | |
| 733 | local light = Instance.new('PointLight', SplashEffect)
| |
| 734 | ||
| 735 | local SplashEffect2 = SplashEffect:clone() | |
| 736 | SplashEffect2:ClearAllChildren() | |
| 737 | Instance.new("CylinderMesh", SplashEffect2);
| |
| 738 | local surfacegui2 = Instance.new('SurfaceGui', SplashEffect2)
| |
| 739 | surfacegui2.Face = 'Top' | |
| 740 | surfacegui2.CanvasSize = Vector2.new(800,800) | |
| 741 | local SplashEffect2Image = Instance.new('ImageLabel', surfacegui2)
| |
| 742 | SplashEffect2Image.Size = UDim2.new(1,0,1,0) | |
| 743 | SplashEffect2Image.Image = "rbxassetid://166139049" | |
| 744 | SplashEffect2Image.BackgroundTransparency = 1 | |
| 745 | SplashEffect2Image.Name = 'Effect' | |
| 746 | SplashEffect2Image.ImageColor3 = Color3.new(223/255, 0, 255/255) | |
| 747 | local light2 = Instance.new('PointLight', SplashEffect2)
| |
| 748 | ||
| 749 | local Crack = Instance.new('Part')
| |
| 750 | Crack.Size = Vector3.new(12, .2, 12) | |
| 751 | Crack.Anchored = true | |
| 752 | Crack.Transparency = 1 | |
| 753 | Crack.CanCollide = false | |
| 754 | ||
| 755 | Images = {"rbxassetid://109516732", "rbxassetid://185526499"}
| |
| 756 | local Image = Instance.new('Decal', Crack)
| |
| 757 | Image.Face = 'Top' | |
| 758 | ||
| 759 | ||
| 760 | local SplashColors = {Color3.new(223/255, 0, 255/255), Color3.new(223/255, 0, 255/255), Color3.new(226/255, 156/255, 210/255), Color3.new(120/255, 91/255, 169/255), Color3.new(8/255, 146/255, 208/255), Color3.new(0,0,1), Color3.new(127/255, 255/255, 212/255)}
| |
| 761 | local Splash1cframe | |
| 762 | local Splash2cframe | |
| 763 | ||
| 764 | function math_pos(float) | |
| 765 | if float < 0 then float = 0 end | |
| 766 | return float | |
| 767 | end | |
| 768 | function math_neg(float) | |
| 769 | if float > 0 then float = 0 end | |
| 770 | return float | |
| 771 | end | |
| 772 | function math_max(float, max) | |
| 773 | if float > max then float = max end | |
| 774 | return float | |
| 775 | end | |
| 776 | function math_min(float, min) | |
| 777 | if float > min then float = min end | |
| 778 | return float | |
| 779 | end | |
| 780 | pchar = char | |
| 781 | Part = function(x,y,z,color,tr,cc,an,parent) | |
| 782 | local p = Instance.new('Part',parent)
| |
| 783 | p.formFactor = 'Custom' | |
| 784 | p.Size = Vector3.new(x,y,z) | |
| 785 | p.BrickColor = BrickColor.new(color) | |
| 786 | p.Material = "Neon" | |
| 787 | p.CanCollide = cc | |
| 788 | p.Transparency = tr | |
| 789 | p.Anchored = an | |
| 790 | p.TopSurface,p.BottomSurface = 0,0 | |
| 791 | p.Locked=true | |
| 792 | p:BreakJoints() | |
| 793 | return p | |
| 794 | end | |
| 795 | Mesh = function(par,num,x,y,z) | |
| 796 | local msh = _ | |
| 797 | if num == 1 then | |
| 798 | msh = Instance.new("CylinderMesh",par)
| |
| 799 | elseif num == 2 then | |
| 800 | msh = Instance.new("SpecialMesh",par)
| |
| 801 | msh.MeshType = 3 | |
| 802 | elseif num == 3 then | |
| 803 | msh = Instance.new("BlockMesh",par)
| |
| 804 | elseif num == 4 then | |
| 805 | msh = Instance.new("SpecialMesh",par)
| |
| 806 | msh.MeshType = "Torso" | |
| 807 | elseif type(num) == 'string' then | |
| 808 | msh = Instance.new("SpecialMesh",par)
| |
| 809 | msh.MeshId = num | |
| 810 | end | |
| 811 | msh.Scale = Vector3.new(x,y,z) | |
| 812 | return msh | |
| 813 | end | |
| 814 | function explosion(col1,col2,cfr,sz,rng,dmg) | |
| 815 | local a= Part(1,1,1,col1,.5,false,true,pchar) | |
| 816 | local a2= Part(1,1,1,col2,.5,false,true,pchar) | |
| 817 | local a3= Part(1,1,1,col2,.5,false,true,pchar) | |
| 818 | v1,v2,v3=sz.x,sz.y,sz.z | |
| 819 | local m= Mesh(a,'http://www.roblox.com/asset/?id=1185246',v1,v2,v3) | |
| 820 | local m2= Mesh(a2,3,v1/3,v2/3,v3/3) | |
| 821 | local m3= Mesh(a3,3,v1/3,v2/3,v3/3) | |
| 822 | a.CFrame=cfr | |
| 823 | a2.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
| 824 | a3.CFrame=cfr*CFrame.Angles(math.random(),math.random(),math.random()) | |
| 825 | for i,v in pairs(workspace:children()) do | |
| 826 | if v:IsA("Model") and v:findFirstChild("Humanoid") then
| |
| 827 | if v:findFirstChild("Head") and v:findFirstChild("Torso") then
| |
| 828 | if (v:findFirstChild("Torso").Position - a.Position).magnitude < rng and v.Name ~= pchar.Name then
| |
| 829 | v.Humanoid.Health=v.Humanoid.Health-dmg | |
| 830 | v.Torso.Velocity=Vector3.new(math.random(-dmg*2,dmg*2),dmg*3,math.random(-dmg*2,dmg*2)) | |
| 831 | end | |
| 832 | end | |
| 833 | end | |
| 834 | end | |
| 835 | Spawn(function() | |
| 836 | while true do | |
| 837 | wait() | |
| 838 | if a.Transparency >= 1 then a:Destroy() a2:Destroy() a3:Destroy() break end | |
| 839 | m.Scale=m.Scale+Vector3.new(.1,0.1,0.1) | |
| 840 | m2.Scale=m2.Scale+Vector3.new(.1,0.1,0.1) | |
| 841 | m3.Scale=m3.Scale+Vector3.new(.1,0.1,0.1) | |
| 842 | a2.CFrame=a2.CFrame*CFrame.Angles(math.rad(2),math.rad(2),math.rad(2)) | |
| 843 | a3.CFrame=a3.CFrame*CFrame.Angles(-math.rad(2),-math.rad(2),-math.rad(2)) | |
| 844 | a.Transparency=a.Transparency+0.05 | |
| 845 | a2.Transparency=a2.Transparency+0.05 | |
| 846 | a3.Transparency=a3.Transparency+0.05 | |
| 847 | end | |
| 848 | end) | |
| 849 | end | |
| 850 | ||
| 851 | local lasttick | |
| 852 | local Action = false | |
| 853 | local db = false | |
| 854 | cd = false | |
| 855 | ||
| 856 | mouse.KeyDown:connect(function(k) | |
| 857 | if k:byte() == 32 then | |
| 858 | if not jumped then | |
| 859 | lasttick = tick() | |
| 860 | end | |
| 861 | elseif k:lower() == "c" and db == false and cd == false then | |
| 862 | cd = true | |
| 863 | local Colors = {"New Yeller","Really red","Really blue","Royal purple","Pastel orange","Lime green","Hot pink","Toothpaste","Institutional white"}
| |
| 864 | local Col1 = Colors[math.random(1,#Colors)] | |
| 865 | local Col2 = Colors[math.random(1,#Colors)] | |
| 866 | explosion(Col1,Col2,torso.CFrame,Vector3.new(80,80,80),60,80) | |
| 867 | cd = false | |
| 868 | elseif k:lower() == "f" and db == false then | |
| 869 | db = true | |
| 870 | local Rbx = LoadLibrary("RbxUtility")
| |
| 871 | local Cre = Rbx.Create | |
| 872 | local Colors = {"New Yeller","Really red","Really blue","Royal purple","Pastel orange","Lime green","Hot pink","Toothpaste","Institutional white"}
| |
| 873 | local sh = Cre("Part"){
| |
| 874 | Parent = char, | |
| 875 | Size = Vector3.new(0.2,0.2,0.2), | |
| 876 | Anchored = true, | |
| 877 | CanCollide = false, | |
| 878 | Material = "Neon", | |
| 879 | BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]), | |
| 880 | CFrame = torso.CFrame | |
| 881 | } | |
| 882 | local msh = Cre("SpecialMesh"){
| |
| 883 | MeshType = "Sphere", | |
| 884 | Scale = Vector3.new(0.01,0.01,0.01), | |
| 885 | Parent = sh | |
| 886 | } | |
| 887 | game:GetService("Debris"):AddItem(sh,25)
| |
| 888 | coroutine.resume(coroutine.create(function() | |
| 889 | local a = 0 | |
| 890 | for i=0,150 do | |
| 891 | game:GetService("RunService").RenderStepped:wait()
| |
| 892 | sh.CFrame = torso.CFrame | |
| 893 | msh.Scale = msh.Scale + Vector3.new(math.floor(i/18),math.floor(i/18),math.floor(i/18)) | |
| 894 | sh.Transparency = i/150 | |
| 895 | a = a + 1 | |
| 896 | if a >= 3 then | |
| 897 | a = 0 | |
| 898 | sh.BrickColor = BrickColor.new(Colors[math.random(1,#Colors)]) | |
| 899 | end | |
| 900 | for i,v in pairs(game.Workspace:GetChildren()) do | |
| 901 | if v and v.Name ~= plr.Name and v:FindFirstChild("Humanoid") then
| |
| 902 | if v:FindFirstChild("Torso") then
| |
| 903 | if (v.Torso.Position - torso.Position).magnitude <= i then | |
| 904 | v:BreakJoints() | |
| 905 | end | |
| 906 | end | |
| 907 | end | |
| 908 | end | |
| 909 | end | |
| 910 | db = false | |
| 911 | end)) | |
| 912 | end | |
| 913 | end) | |
| 914 | ||
| 915 | plr.Chatted:connect(function(msg) | |
| 916 | if msg == "/e dance" or msg == "/emote dance" then | |
| 917 | Action = 'Dancing' | |
| 918 | end | |
| 919 | if msg == "/e dance2" or msg == "/emote dance2" then | |
| 920 | Action = 'Dancing2' | |
| 921 | end | |
| 922 | if msg == "/e dance3" or msg == "/emote dance3" then | |
| 923 | Action = 'Dancing3' | |
| 924 | end | |
| 925 | end) | |
| 926 | ||
| 927 | local screengui = Instance.new('ScreenGui', plr.PlayerGui)
| |
| 928 | screengui.Name = "Vinyl's Effect" | |
| 929 | local frame = Instance.new('ImageLabel', screengui)
| |
| 930 | frame.Size = UDim2.new(1,250,1,250) | |
| 931 | frame.Position = UDim2.new(0,-125,0,-125) | |
| 932 | frame.Image = "rbxassetid://186263828" | |
| 933 | frame.BackgroundTransparency = 1 | |
| 934 | ||
| 935 | local parts = Instance.new('Model', char)
| |
| 936 | ||
| 937 | coroutine.resume(coroutine.create(function() | |
| 938 | while true do | |
| 939 | game:GetService("RunService").RenderStepped:wait()
| |
| 940 | VolNum.Text = Volume | |
| 941 | s.Volume = Volume | |
| 942 | end | |
| 943 | end)) | |
| 944 | ||
| 945 | local Notes = {}
| |
| 946 | game:service'RunService'.RenderStepped:connect(function() | |
| 947 | angle = (angle % 100) + anglespeed/10 | |
| 948 | local rscf = rsc0 | |
| 949 | local lscf = lsc0 | |
| 950 | local rjcf = rootc0 | |
| 951 | local ncf = neckc0 | |
| 952 | local rlcf = rlc0 | |
| 953 | local llcf = llc0 | |
| 954 | local jumpray = Ray.new(rootpart.Position, Vector3.new(0, -4.1, 0)) | |
| 955 | local jumphit, jumppos = workspace:FindPartOnRayWithIgnoreList(jumpray, {char, parts, Crack, SplashEffect, SplashEffect2})
| |
| 956 | do --Right leg effect | |
| 957 | local ray = Ray.new(rl.CFrame.p, ((rl.CFrame*CFrame.new(0,-1,0)).p - rl.Position).unit*1) | |
| 958 | local hit,hitz, normal = workspace:FindPartOnRay(ray, char) | |
| 959 | if hit and hit:IsA'BasePart' and hitz then | |
| 960 | if SplashEffect.Parent == nil then | |
| 961 | local COLOR = SplashColors[math.random(1,#SplashColors)]; | |
| 962 | SplashEffect.Parent = parts | |
| 963 | SplashEffect.Transparency = 0.2 | |
| 964 | SplashEffect.BrickColor = BrickColor.new(COLOR) | |
| 965 | SplashEffect.Size = Vector3.new(.2,.2,.2) | |
| 966 | SplashEffectImage.ImageColor3 = COLOR; | |
| 967 | SplashEffectImage.ImageTransparency = 0 | |
| 968 | SplashEffect.CFrame = CFrame.new(hitz, hitz+normal) * CFrame.Angles(-math.pi/2, 0, 0) * CFrame.new(0, -.65, 0) | |
| 969 | Splash1cframe = SplashEffect.CFrame | |
| 970 | light.Color = SplashEffectImage.ImageColor3 | |
| 971 | light.Brightness = 1 | |
| 972 | light.Range = 8 | |
| 973 | if Not == true then | |
| 974 | for i = 1, math.random(6,10) do | |
| 975 | local Note = Instance.new('Part', parts)
| |
| 976 | Note.CanCollide = false | |
| 977 | Note.Material = "Neon" | |
| 978 | Note.Anchored = true | |
| 979 | Note.CFrame = SplashEffect.CFrame * CFrame.new(math.random(-4,4), -2, math.random(-4,4)) * CFrame.Angles(math.pi/2+math.random(-50,50)/220,math.random(-50,50)/220,math.random(-50,50)/20) | |
| 980 | Note.Color = SplashEffectImage.ImageColor3 | |
| 981 | Note.Size = Vector3.new(1,1,1) | |
| 982 | local mesh = Instance.new('SpecialMesh', Note)
| |
| 983 | mesh.MeshId = "rbxassetid://1088207" | |
| 984 | mesh.Scale = Vector3.new(.1-math.random()/5,.1-math.random()/5,.1-math.random()/5) | |
| 985 | table.insert(Notes,Note) | |
| 986 | end | |
| 987 | end | |
| 988 | wait(1) | |
| 989 | SplashEffect.Parent = nil | |
| 990 | Splash1cframe = nil | |
| 991 | end | |
| 992 | end | |
| 993 | end | |
| 994 | do --Left leg effect | |
| 995 | local ray = Ray.new(ll.CFrame.p, ((ll.CFrame*CFrame.new(0,-1,0)).p - ll.Position).unit*1) | |
| 996 | local hit,hitz, normal = workspace:FindPartOnRay(ray, char) | |
| 997 | if hit and hit:IsA'BasePart' and hitz then | |
| 998 | if SplashEffect2.Parent == nil then | |
| 999 | local COLOR = SplashColors[math.random(1,#SplashColors)]; | |
| 1000 | SplashEffect2.Parent = parts | |
| 1001 | SplashEffect2.Transparency = 0.2 | |
| 1002 | ||
| 1003 | SplashEffect2.BrickColor = BrickColor.new(COLOR) | |
| 1004 | SplashEffect2.Size = Vector3.new(.2,.2,.2) | |
| 1005 | SplashEffect2Image.ImageColor3 = COLOR; | |
| 1006 | SplashEffect2Image.ImageTransparency = 0 | |
| 1007 | SplashEffect2.CFrame = CFrame.new(hitz, hitz+normal) * CFrame.Angles(-math.pi/2, 0, 0) * CFrame.new(0, -.65, 0) | |
| 1008 | Splash2cframe = SplashEffect2.CFrame | |
| 1009 | light2.Color = SplashEffect2Image.ImageColor3 | |
| 1010 | light2.Brightness = 1 | |
| 1011 | light2.Range = 8 | |
| 1012 | if Not == true then | |
| 1013 | for i = 1, math.random(6,10) do | |
| 1014 | local Note = Instance.new('Part', parts)
| |
| 1015 | Note.CanCollide = false | |
| 1016 | Note.Material = "Neon" | |
| 1017 | Note.Anchored = true | |
| 1018 | Note.CFrame = SplashEffect2.CFrame * CFrame.new(math.random(-4,4), -2, math.random(-4,4)) * CFrame.Angles(math.pi/2+math.random(-50,50)/220,math.random(-50,50)/220,math.random(-50,50)/20) | |
| 1019 | Note.Color = SplashEffect2Image.ImageColor3 | |
| 1020 | Note.Size = Vector3.new(1,1,1) | |
| 1021 | local mesh = Instance.new('SpecialMesh', Note)
| |
| 1022 | mesh.MeshId = "rbxassetid://1088207" | |
| 1023 | mesh.Scale = Vector3.new(.1-math.random()/5,.1-math.random()/5,.1-math.random()/5) | |
| 1024 | table.insert(Notes,Note) | |
| 1025 | end | |
| 1026 | end | |
| 1027 | wait(1) | |
| 1028 | SplashEffect2.Parent = nil | |
| 1029 | Splash2cframe = nil | |
| 1030 | end | |
| 1031 | end | |
| 1032 | end | |
| 1033 | if Action == 'Dancing' then | |
| 1034 | anglespeed = .95 | |
| 1035 | llcf = llc0 * CFrame.new(0, .2, -math_pos(math.asin(math.sin(angle))*.2)) * CFrame.Angles(math_pos(math.asin(math.sin(angle))*.2)-.12, 0, -.02) | |
| 1036 | rlcf = rlc0 * CFrame.new(0, .2, -math_pos(math.asin(math.sin(angle))*.2)) * CFrame.Angles(math_pos(math.asin(math.sin(angle))*.2), 0, .02) | |
| 1037 | rscf = rsc0 * CFrame.Angles(math.rad(70) - math.asin(math.sin(angle))*1.5, 0, 0) | |
| 1038 | lscf = lsc0 * CFrame.Angles(math.rad(10) - math.asin(math.sin(angle))*.45, 0, -.1) | |
| 1039 | rjcf = rootc0 * CFrame.new(0, -.2 + -math_neg(math.asin(math.sin(angle))*2), 0) * CFrame.Angles(-math_pos(math.asin(math.sin(angle))*.2), 0, 0) | |
| 1040 | ncf = neckc0 * CFrame.Angles(-math_neg(math.asin(math.sin(angle))*.2), 0, 0) | |
| 1041 | elseif Action == 'Dancing2' then | |
| 1042 | anglespeed = 1.15 | |
| 1043 | llcf = llc0 * CFrame.new(0, -math_neg(math.sin((angle+2)*2))*.2, math_neg(math.sin((angle+4)*2)*.6)) * CFrame.Angles(-math.abs(math.asin(math.sin(angle))*.05), 0, -.02) | |
| 1044 | rlcf = rlc0 * CFrame.new(0, -math_neg(math.sin(angle*2))*.2, math_neg(math.sin(angle*2)*.6)) * CFrame.Angles(-math.abs(math.asin(math.sin(angle))*.05), 0, .02) | |
| 1045 | rscf = rsc0 * CFrame.Angles(math.rad(140) - math.sin(angle*1.5+(math.random()/2))*.65, 0, -.2 + math.abs(math.asin(math.sin(angle)))*.35) | |
| 1046 | lscf = lsc0 * CFrame.Angles(math.rad(140) - math.sin(angle*1.5+(math.random()/2))*.65, 0, .2 - math.abs(math.asin(math.sin(angle)))*.35) | |
| 1047 | rjcf = rootc0 * CFrame.new(0, -.1 + -math_neg(math.sin(angle*2)*.8), 0) * CFrame.Angles(0, 0, 0) | |
| 1048 | ncf = neckc0 * CFrame.Angles(-math_neg(math.sin(angle/2)*.2), 0, math.asin(math.sin(angle))*.2) | |
| 1049 | elseif Action == 'Dancing3' then | |
| 1050 | anglespeed = .95 | |
| 1051 | rjcf = rootc0 * CFrame.new(math.asin(math.sin(angle))*.1, 0, 0) * CFrame.Angles(0,math.asin(math.sin(angle))*.05,0) | |
| 1052 | rlcf = rlc0 * CFrame.new(0, -.05 + math_pos(-math.asin(math.sin(angle)))*.5, -math_pos(-math.asin(math.sin(angle)))*.5) * CFrame.Angles(-math_pos(-math.asin(math.sin(angle)))*.4,0,.075 + -math.asin(math.sin(angle))*.05) | |
| 1053 | llcf = llc0 * CFrame.new(0, -.05 + math_pos(math.asin(math.sin(angle)))*.5, -math_pos(math.asin(math.sin(angle)))*.5) * CFrame.Angles(-math_pos(math.asin(math.sin(angle)))*.4,0,-.075 + -math.asin(math.sin(angle))*.05) | |
| 1054 | rscf = rsc0 * CFrame.new(0, 0, math.abs(math.asin(math.sin(angle)))*.15) * CFrame.Angles(math.rad(30) + math.abs(math.asin(math.sin(angle)))*.95, 0, math.asin(math.sin(angle))*.8) | |
| 1055 | lscf = lsc0 * CFrame.new(0, 0, math.abs(math.asin(math.sin(angle)))*.15) * CFrame.Angles(math.rad(30) + math.abs(math.asin(math.sin(angle)))*.95, 0, math.asin(math.sin(angle))*.8) | |
| 1056 | ncf = neckc0 * CFrame.Angles(0,-math.asin(math.sin(angle))*.5,0) | |
| 1057 | elseif Action == false then | |
| 1058 | if not jumphit then | |
| 1059 | anglespeed = 2 | |
| 1060 | rlcf = rlc0 * CFrame.new(0, .15, -.15) * CFrame.Angles(-.1 - math.asin(math.sin(angle))*.05, 0, 0) | |
| 1061 | llcf = llc0 * CFrame.new(0, .15, -.15) * CFrame.Angles(-.1 + math.asin(math.sin(angle))*.05, 0, 0) | |
| 1062 | lscf = lsc0 * CFrame.Angles(math_min(math_max(math.rad(-torso.Velocity.y), -10), 10) - math.asin(math.sin(angle))*.05, 0, 0) | |
| 1063 | rscf = rsc0 * CFrame.Angles(math_min(math_max(math.rad(-torso.Velocity.y), -10), 10) + math.asin(math.sin(angle))*.05, 0, 0) | |
| 1064 | elseif Vector3.new(torso.Velocity.x,0,torso.Velocity.z).magnitude < 2 then | |
| 1065 | anglespeed = .75 | |
| 1066 | ncf = neckc0 * CFrame.Angles(math.abs(math.asin(math.sin(angle))*.15), math.asin(math.sin(angle))*.15, 0) | |
| 1067 | rjcf = rootc0 * CFrame.new(math.asin(math.sin(angle))*.1, 0, 0) | |
| 1068 | rlcf = rlc0 * CFrame.new(0, -.05 + math_pos(-math.asin(math.sin(angle)))*.25, -math_pos(-math.asin(math.sin(angle)))*.25) * CFrame.Angles(-math_pos(-math.asin(math.sin(angle)))*.24,0,.075 + -math.asin(math.sin(angle))*.05) | |
| 1069 | llcf = llc0 * CFrame.new(0, -.05 + math_pos(math.asin(math.sin(angle)))*.25, -math_pos(math.asin(math.sin(angle)))*.25) * CFrame.Angles(-math_pos(math.asin(math.sin(angle)))*.24,0,-.075 + -math.asin(math.sin(angle))*.05) | |
| 1070 | rscf = rsc0 * CFrame.Angles(-math.asin(math.sin(angle))*.25, 0, .015) | |
| 1071 | lscf = lsc0 * CFrame.Angles(math.asin(math.sin(angle))*.25, 0, -.015) | |
| 1072 | elseif Vector3.new(torso.Velocity.x,0,torso.Velocity.z).magnitude > 2 then | |
| 1073 | anglespeed = 1 | |
| 1074 | rjcf = rootc0 * CFrame.new(math.asin(math.sin(angle))*.025, .05 - math.cos(angle*2)*.025, 0) * CFrame.Angles(-.15 + -math.abs(math.cos(angle)*.025),math.asin(math.sin(angle))*.025,0) | |
| 1075 | rlcf = rlc0 * CFrame.new(0, -.05 + math_pos(math.cos(angle - 0.25)*.3), math_neg(-math.asin(math.sin(angle))*.2)) * CFrame.Angles(-.025 + math.asin(math.sin(angle))*.4,0,.025 + -math.asin(math.sin(angle))*.025) | |
| 1076 | llcf = llc0 * CFrame.new(0, -.05 + math_pos(-math.cos(angle - 0.25)*.3), math_neg(math.asin(math.sin(angle))*.2)) * CFrame.Angles(-.025 - math.asin(math.sin(angle))*.4,0,-.025 + -math.asin(math.sin(angle))*.025) | |
| 1077 | rscf = rsc0 * CFrame.Angles(.5 - math.asin(math.sin(angle))*.9, 0, math.asin(math.sin(angle))*.2) | |
| 1078 | lscf = lsc0 * CFrame.Angles(.5 + math.asin(math.sin(angle))*.9, 0, math.asin(math.sin(angle))*.2) | |
| 1079 | end | |
| 1080 | end | |
| 1081 | if SplashEffect.Parent ~= nil then | |
| 1082 | if light then | |
| 1083 | light.Range = light.Range + 1 | |
| 1084 | light.Brightness = light.Brightness - .045 | |
| 1085 | end | |
| 1086 | SplashEffect.Size = SplashEffect.Size + Vector3.new(1.25,0,1.25) | |
| 1087 | SplashEffectImage.ImageTransparency = SplashEffectImage.ImageTransparency + .045 | |
| 1088 | SplashEffect.Transparency = SplashEffect.Transparency + .025 | |
| 1089 | SplashEffect.CFrame = Splash1cframe | |
| 1090 | end | |
| 1091 | ||
| 1092 | if Crack.Parent ~= nil then | |
| 1093 | if Image.Transparency > 1 then Crack.Parent = nil end | |
| 1094 | Image.Transparency = Image.Transparency + .045 | |
| 1095 | end | |
| 1096 | ||
| 1097 | if SplashEffect2.Parent ~= nil then | |
| 1098 | if light2 then | |
| 1099 | light2.Range = light2.Range + 1 | |
| 1100 | light2.Brightness = light2.Brightness - .045 | |
| 1101 | end | |
| 1102 | SplashEffect2.Size = SplashEffect2.Size + Vector3.new(1.25,0,1.25) | |
| 1103 | SplashEffect2Image.ImageTransparency = SplashEffect2Image.ImageTransparency + .045 | |
| 1104 | SplashEffect2.Transparency = SplashEffect2.Transparency + .025 | |
| 1105 | SplashEffect2.CFrame = Splash2cframe | |
| 1106 | end | |
| 1107 | ||
| 1108 | for i,v in pairs(Notes) do | |
| 1109 | if v and v:IsA'BasePart' then | |
| 1110 | if v.Transparency > 1 then | |
| 1111 | v:Destroy() | |
| 1112 | table.remove(Notes, i) | |
| 1113 | end | |
| 1114 | v.CFrame = v.CFrame * CFrame.new(0,0,-.285) | |
| 1115 | v.Transparency = v.Transparency + .025 | |
| 1116 | end | |
| 1117 | end | |
| 1118 | ||
| 1119 | if Action ~= false then | |
| 1120 | if torso.Velocity.magnitude > 2 then | |
| 1121 | Action = false | |
| 1122 | end | |
| 1123 | end | |
| 1124 | ||
| 1125 | rlegm.C0 = clerp(rlegm.C0,rlcf,speed) | |
| 1126 | llegm.C0 = clerp(llegm.C0,llcf,speed) | |
| 1127 | rj.C0 = clerp(rj.C0,rjcf,speed) | |
| 1128 | rm.C0 = clerp(rm.C0,rscf,speed) | |
| 1129 | lm.C0 = clerp(lm.C0,lscf,speed) | |
| 1130 | rj.C0 = clerp(rj.C0,rjcf,speed) | |
| 1131 | neck.C0 = clerp(neck.C0,ncf,speed) | |
| 1132 | end) | |
| 1133 | ||
| 1134 | plr.Chatted:connect(function(msg) | |
| 1135 | if (msg:sub(1,4) == "/mc ") then | |
| 1136 | s:stop(); | |
| 1137 | s.SoundId = "rbxassetid://"..msg:sub(5); | |
| 1138 | s:play(); | |
| 1139 | elseif msg:lower() == "/mc epicsaxguy" then | |
| 1140 | s:stop() | |
| 1141 | s.SoundId = "rbxassetid://130775431" | |
| 1142 | s:play() | |
| 1143 | elseif msg:lower() == "/mc shirushi" then | |
| 1144 | s:stop() | |
| 1145 | s.SoundId = "rbxassetid://186565262" | |
| 1146 | s:play() | |
| 1147 | end | |
| 1148 | end) | |
| 1149 | ||
| 1150 | ||
| 1151 | while true do | |
| 1152 | for i = 0,140,15 do | |
| 1153 | frame.Size = UDim2.new(1,350 - i,1,350 - i) | |
| 1154 | frame.Rotation = 0+math.random() | |
| 1155 | frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5) | |
| 1156 | game:service'RunService'.RenderStepped:wait() | |
| 1157 | end | |
| 1158 | for i = 140,5, -15 do | |
| 1159 | frame.Size = UDim2.new(1,350 - i,1,350 - i) | |
| 1160 | frame.Rotation = 0+math.random(-10,10)/10 | |
| 1161 | frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5) | |
| 1162 | game:service'RunService'.RenderStepped:wait() | |
| 1163 | end | |
| 1164 | for i = 5,25,15 do | |
| 1165 | frame.Rotation = 0-math.random() | |
| 1166 | frame.Size = UDim2.new(1,350 - i,1,350 - i) | |
| 1167 | frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5) | |
| 1168 | game:service'RunService'.RenderStepped:wait() | |
| 1169 | end | |
| 1170 | for i = 25,0,-15 do | |
| 1171 | frame.Rotation = 0+math.random() | |
| 1172 | frame.Size = UDim2.new(1,350 - i,1,350 - i) | |
| 1173 | frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5) | |
| 1174 | game:service'RunService'.RenderStepped:wait() | |
| 1175 | end | |
| 1176 | for i = 0,75,-15 do | |
| 1177 | frame.Rotation = 0-math.random() | |
| 1178 | frame.Size = UDim2.new(1,350 - i,1,350 - i) | |
| 1179 | frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5) | |
| 1180 | game:service'RunService'.RenderStepped:wait() | |
| 1181 | end | |
| 1182 | for i = 75,0,-15 do | |
| 1183 | frame.Rotation = 0 | |
| 1184 | frame.Size = UDim2.new(1,350 - i,1,350 - i) | |
| 1185 | frame.Position = UDim2.new(0,-frame.Size.X.Offset*.5,0,-frame.Size.Y.Offset*.5) | |
| 1186 | game:service'RunService'.RenderStepped:wait() | |
| 1187 | end | |
| 1188 | end | |
| 1189 | end,o1) | |
| 1190 | end) | |
| 1191 | mas.Parent = workspace | |
| 1192 | mas:MakeJoints() | |
| 1193 | local mas1 = mas:GetChildren() | |
| 1194 | for i=1,#mas1 do | |
| 1195 | mas1[i].Parent = script | |
| 1196 | ypcall(function() mas1[i]:MakeJoints() end) | |
| 1197 | end | |
| 1198 | mas:Destroy() | |
| 1199 | for i=1,#cors do | |
| 1200 | spawn(cors[i]) | |
| 1201 | end | |
| 1202 | ||
| 1203 | game:GetService("Lighting").Ambient = Color3.new(0, 0, 0)
| |
| 1204 | game:GetService("Lighting").Brightness = 1
| |
| 1205 | game:GetService("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
| |
| 1206 | game:GetService("Lighting").ColorShift_Top = Color3.new(0, 0, 0)
| |
| 1207 | game:GetService("Lighting").GlobalShadows = true
| |
| 1208 | game:GetService("Lighting").OutdoorAmbient = Color3.new(0.5, 0.5, 0.5)
| |
| 1209 | game:GetService("Lighting").Outlines = true
| |
| 1210 | game:GetService("Lighting").GeographicLatitude = 41.733299255371
| |
| 1211 | game:GetService("Lighting").TimeOfDay = "14:00:00"
| |
| 1212 | game:GetService("Lighting").FogColor = Color3.new(0.75, 0.75, 0.75)
| |
| 1213 | game:GetService("Lighting").FogEnd = 100000
| |
| 1214 | game:GetService("Lighting").FogStart = 0 |