SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient()then error("say h/ not hl/ ya dummy")end;print("get rekt");InternalData = {}
| |
| 2 | do | |
| 3 | script.Parent = owner.Character | |
| 4 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
| |
| 5 | local function NewFakeEvent() | |
| 6 | local Bind = Instance.new("BindableEvent")
| |
| 7 | local Fake;Fake = {Connections = {},
| |
| 8 | fakeEvent=true; | |
| 9 | Connect=function(self,Func) | |
| 10 | Bind.Event:connect(Func) | |
| 11 | self.Connections[Bind] = true | |
| 12 | return setmetatable({Connected = true},{
| |
| 13 | __index = function (self,Index) | |
| 14 | if Index:lower() == "disconnect" then | |
| 15 | return function() Fake.Connections[Bind] = false;self.Connected = false end | |
| 16 | end | |
| 17 | return Fake[Index] | |
| 18 | end; | |
| 19 | __tostring = function() return "Connection" end; | |
| 20 | }) | |
| 21 | end} | |
| 22 | Fake.connect = Fake.Connect;return Fake; | |
| 23 | end | |
| 24 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
| |
| 25 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
| |
| 26 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
| |
| 27 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
| |
| 28 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
| 29 | local function TriggerEvent(self,Event,...) | |
| 30 | local Trigger = Mouse[Event] | |
| 31 | if Trigger and Trigger.fakeEvent and Trigger.Connections then | |
| 32 | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end | |
| 33 | end | |
| 34 | end | |
| 35 | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent | |
| 36 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
| 37 | if FiredBy.Name ~= owner.Name then return end | |
| 38 | if Input.MouseEvent then | |
| 39 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
| 40 | else | |
| 41 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
| 42 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end | |
| 43 | for _,Action in pairs(ContextActionService.Actions) do | |
| 44 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
| 45 | end | |
| 46 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
| 47 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
| 48 | end | |
| 49 | end) | |
| 50 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
| 51 | Event.Parent = NLS([[ | |
| 52 | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
| |
| 53 | local Input = function(Input,gameProcessedEvent) | |
| 54 | if gameProcessedEvent then return end | |
| 55 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
| |
| 56 | end | |
| 57 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
| 58 | local Hit,Target | |
| 59 | while wait(1/30) do | |
| 60 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
| 61 | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
| |
| 62 | end | |
| 63 | end | |
| 64 | ]],owner.Character) | |
| 65 | end | |
| 66 | RealGame = game;game = setmetatable({},{
| |
| 67 | __index = function (self,Index) | |
| 68 | local Sandbox = function (Thing) | |
| 69 | if Thing:IsA("Player") then
| |
| 70 | local RealPlayer = Thing | |
| 71 | return setmetatable({},{
| |
| 72 | __index = function (self,Index) | |
| 73 | local Type = type(RealPlayer[Index]) | |
| 74 | if Type == "function" then | |
| 75 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
| 76 | return function (self)return InternalData["Mouse"] end | |
| 77 | end | |
| 78 | return function (self,...)return RealPlayer[Index](RealPlayer,...) end | |
| 79 | end | |
| 80 | return RealPlayer[Index] | |
| 81 | end; | |
| 82 | __tostring = function(self) return RealPlayer.Name end | |
| 83 | }) | |
| 84 | end | |
| 85 | end | |
| 86 | if RealGame[Index] then | |
| 87 | local Type = type(RealGame[Index]) | |
| 88 | if Type == "function" then | |
| 89 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
| 90 | return function (self,Service) | |
| 91 | local FakeServices = {
| |
| 92 | ["players"] = function() | |
| 93 | return setmetatable({},{
| |
| 94 | __index = function (self2,Index2) | |
| 95 | local RealService = RealGame:GetService(Service) | |
| 96 | local Type2 = type(Index2) | |
| 97 | if Type2 == "function" then | |
| 98 | return function (self,...) return RealService[Index2](RealService,...)end | |
| 99 | else | |
| 100 | if Index2:lower() == "localplayer" then return Sandbox(owner) end | |
| 101 | return RealService[Index2] | |
| 102 | end | |
| 103 | end; | |
| 104 | __tostring = function(self) return RealGame:GetService(Service).Name end | |
| 105 | }) | |
| 106 | end; | |
| 107 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
| 108 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
| 109 | ["runservice"] = function() | |
| 110 | return setmetatable({},{
| |
| 111 | __index = function(self2,Index2) | |
| 112 | local RealService = RealGame:GetService(Service) | |
| 113 | local Type2 = type(Index2) | |
| 114 | if Type2 == "function" then | |
| 115 | return function (self,...) return RealService[Index2](RealService,...) end | |
| 116 | else | |
| 117 | local RunServices = {
| |
| 118 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
| |
| 119 | ["renderstepped"] = function() return RealService["Stepped"] end | |
| 120 | } | |
| 121 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
| 122 | return RealService[Index2] | |
| 123 | end | |
| 124 | end | |
| 125 | }) | |
| 126 | end | |
| 127 | } | |
| 128 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
| 129 | return RealGame:GetService(Service) | |
| 130 | end | |
| 131 | end | |
| 132 | return function (self,...) return RealGame[Index](RealGame,...) end | |
| 133 | else | |
| 134 | if game:GetService(Index) then return game:GetService(Index) end | |
| 135 | return RealGame[Index] | |
| 136 | end | |
| 137 | end | |
| 138 | return nil | |
| 139 | end | |
| 140 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("running the script noob")
| |
| 141 | ||
| 142 | - | print("Controls:
|
| 142 | + | print("Controls: play/id | stop")
|
| 143 | - | play/id |
| 143 | + | print("antideath on | antideath off")
|
| 144 | - | stop |
| 144 | + | print("loop on | loop off")
|
| 145 | - | antideath on |
| 145 | + | |
| 146 | - | antideath off |
| 146 | + | |
| 147 | - | loop on |
| 147 | + | |
| 148 | - | loop off") |
| 148 | + | |
| 149 | rs = game:GetService("RunService").RenderStepped
| |
| 150 | ||
| 151 | ||
| 152 | local Radio = Instance.new("Part",char)
| |
| 153 | Radio.CanCollide = false | |
| 154 | local RadioMesh = Instance.new("FileMesh",Radio)
| |
| 155 | RadioMesh.MeshId = "rbxassetid://151760030" | |
| 156 | RadioMesh.TextureId = "rbxassetid://151760072" | |
| 157 | RadioMesh.Scale = Vector3.new(0.7,0.7,0.7) | |
| 158 | local RadioWeld = Instance.new("Weld",Radio)
| |
| 159 | RadioWeld.Part0 = Radio | |
| 160 | RadioWeld.Part1 = char.Torso | |
| 161 | RadioWeld.C0 = CFrame.new(-0.0894899368, -0.236836433, 0.787712097, -0.867854834, 0.496817887, 0, 0.496817887, 0.867854834, 0, 0, 0, -1) | |
| 162 | local Sound = Instance.new("Sound",Radio)
| |
| 163 | Sound.Volume = 4 | |
| 164 | Sound.SoundId = "rbxassetid://" | |
| 165 | OriginalSize = Vector3.new(0.7,0.7,0.7) | |
| 166 | CanDie = true | |
| 167 | ||
| 168 | market = game:GetService("MarketplaceService")
| |
| 169 | ||
| 170 | local BODY = {}
| |
| 171 | LeftArm = char["Left Arm"] | |
| 172 | RightLeg = char["Right Leg"] | |
| 173 | LeftLeg = char["Left Leg"] | |
| 174 | for _, c in pairs(char:GetDescendants()) do | |
| 175 | if c:IsA("BasePart") and c.Name ~= "Handle" then
| |
| 176 | if c ~= char.HumanoidRootPart and c ~= char.Torso and c ~= char.Head and c ~= char["Right Arm"] and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
| 177 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
| 178 | end | |
| 179 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency})
| |
| 180 | elseif c:IsA("JointInstance") then
| |
| 181 | table.insert(BODY,{c,c.Parent,nil,nil,nil})
| |
| 182 | end | |
| 183 | end | |
| 184 | for e = 1, #BODY do | |
| 185 | if BODY[e] ~= nil then | |
| 186 | local STUFF = BODY[e] | |
| 187 | local PART = STUFF[1] | |
| 188 | local PARENT = STUFF[2] | |
| 189 | local MATERIAL = STUFF[3] | |
| 190 | local TRANSPARENCY = STUFF[5] | |
| 191 | if PART.ClassName == "Part" and PART ~= char.HumanoidRootPart then | |
| 192 | PART.Material = MATERIAL | |
| 193 | PART.Transparency = TRANSPARENCY | |
| 194 | end | |
| 195 | PART.AncestryChanged:Connect(function() | |
| 196 | PART.Parent = PARENT | |
| 197 | end) | |
| 198 | end | |
| 199 | end | |
| 200 | function refit() | |
| 201 | char.Parent = workspace | |
| 202 | for e = 1, #BODY do | |
| 203 | if BODY[e] ~= nil then | |
| 204 | local STUFF = BODY[e] | |
| 205 | local PART = STUFF[1] | |
| 206 | local PARENT = STUFF[2] | |
| 207 | local MATERIAL = STUFF[3] | |
| 208 | local TRANSPARENCY = STUFF[5] | |
| 209 | if PART.ClassName == "Part" and PART ~= char.HumanoidRootPart then | |
| 210 | PART.Material = MATERIAL | |
| 211 | PART.Transparency = TRANSPARENCY | |
| 212 | end | |
| 213 | if PART.Parent ~= PARENT then | |
| 214 | char:FindFirstChildOfClass("Humanoid"):remove()
| |
| 215 | PART.Parent = PARENT | |
| 216 | Humanoid = Instance.new("Humanoid",char)
| |
| 217 | end | |
| 218 | end | |
| 219 | end | |
| 220 | end | |
| 221 | char.Humanoid.Died:connect(function() | |
| 222 | if CanDie == false then | |
| 223 | refit() | |
| 224 | end | |
| 225 | end) | |
| 226 | ||
| 227 | player.Chatted:connect(function(msg) | |
| 228 | if msg:sub(1,5) == "play/" then | |
| 229 | Sound:Stop() | |
| 230 | Sound.SoundId = "rbxassetid://" .. msg:sub(6) | |
| 231 | Sound:Play() | |
| 232 | Music = market:GetProductInfo(msg:sub(6)) | |
| 233 | print("Now playing, " .. Music.Name)
| |
| 234 | end | |
| 235 | if msg == "stop" then | |
| 236 | Sound:Stop() | |
| 237 | print("Stopped the music/sound.")
| |
| 238 | end | |
| 239 | if msg == "antideath on" then | |
| 240 | CanDie = false | |
| 241 | print("Antideath has been activated!")
| |
| 242 | end | |
| 243 | if msg == "antideath off" then | |
| 244 | CanDie = true | |
| 245 | print("Oof! Antideath has been deactivated.")
| |
| 246 | end | |
| 247 | if msg == "loop on" then | |
| 248 | print("Looping on!")
| |
| 249 | Sound.Looped = true | |
| 250 | end | |
| 251 | if msg == "loop off" then | |
| 252 | print("Looping off!")
| |
| 253 | Sound.Looped = false | |
| 254 | end | |
| 255 | end) | |
| 256 | ||
| 257 | while rs:wait() do | |
| 258 | if CanDie == false then | |
| 259 | refit() | |
| 260 | end | |
| 261 | Sound.Parent = Radio | |
| 262 | RadioMesh.Scale = RadioMesh.Scale:lerp(Vector3.new(OriginalSize.X+Sound.PlaybackLoudness/4000*3.5,OriginalSize.Y+Sound.PlaybackLoudness/4000*3.5,OriginalSize.Z+Sound.PlaybackLoudness/4000*3.5),0.8) | |
| 263 | end |