SHOW:
|
|
- or go back to the newest paste.
1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
3 | local Player,game,owner = owner,game | |
4 | local RealPlayer = Player | |
5 | do | |
6 | print("FE Compatibility code V2 by Mokiros") | |
7 | local RealPlayer = RealPlayer | |
8 | script.Parent = RealPlayer.Character | |
9 | ||
10 | --Fake event to make stuff like Mouse.KeyDown work | |
11 | local Disconnect_Function = function(this) | |
12 | this[1].Functions[this[2]] = nil | |
13 | end | |
14 | local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}} | |
15 | local FakeEvent_Metatable = {__index={ | |
16 | Connect = function(this,f) | |
17 | local i = tostring(math.random(0,10000)) | |
18 | while this.Functions[i] do | |
19 | i = tostring(math.random(0,10000)) | |
20 | end | |
21 | this.Functions[i] = f | |
22 | return setmetatable({this,i},Disconnect_Metatable) | |
23 | end | |
24 | }} | |
25 | FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect | |
26 | local function fakeEvent() | |
27 | return setmetatable({Functions={}},FakeEvent_Metatable) | |
28 | end | |
29 | ||
30 | --Creating fake input objects with fake variables | |
31 | local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()} | |
32 | FakeMouse.keyUp = FakeMouse.KeyUp | |
33 | FakeMouse.keyDown = FakeMouse.KeyDown | |
34 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
35 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
36 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
37 | end} | |
38 | --Merged 2 functions into one by checking amount of arguments | |
39 | CAS.UnbindAction = CAS.BindAction | |
40 | ||
41 | --This function will trigger the events that have been :Connect()'ed | |
42 | local function TriggerEvent(self,ev,...) | |
43 | for _,f in pairs(self[ev].Functions) do | |
44 | f(...) | |
45 | end | |
46 | end | |
47 | FakeMouse.TriggerEvent = TriggerEvent | |
48 | UIS.TriggerEvent = TriggerEvent | |
49 | ||
50 | --Client communication | |
51 | local Event = Instance.new("RemoteEvent") | |
52 | Event.Name = "UserInput_Event" | |
53 | Event.OnServerEvent:Connect(function(plr,io) | |
54 | if plr~=RealPlayer then return end | |
55 | FakeMouse.Target = io.Target | |
56 | FakeMouse.Hit = io.Hit | |
57 | if not io.isMouse then | |
58 | local b = io.UserInputState == Enum.UserInputState.Begin | |
59 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
60 | return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up") | |
61 | end | |
62 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
63 | return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up") | |
64 | end | |
65 | for _,t in pairs(CAS.Actions) do | |
66 | for _,k in pairs(t.Keys) do | |
67 | if k==io.KeyCode then | |
68 | t.Function(t.Name,io.UserInputState,io) | |
69 | end | |
70 | end | |
71 | end | |
72 | FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
73 | UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false) | |
74 | end | |
75 | end) | |
76 | Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event") | |
77 | local Mouse = owner:GetMouse() | |
78 | local UIS = game:GetService("UserInputService") | |
79 | local input = function(io,RobloxHandled) | |
80 | if RobloxHandled then return end | |
81 | --Since InputObject is a client-side instance, we create and pass table instead | |
82 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) | |
83 | end | |
84 | UIS.InputBegan:Connect(input) | |
85 | UIS.InputEnded:Connect(input) | |
86 | ||
87 | local h,t | |
88 | --Give the server mouse data every second frame, but only if the values changed | |
89 | --If player is not moving their mouse, client won't fire events | |
90 | local HB = game:GetService("RunService").Heartbeat | |
91 | while true do | |
92 | if h~=Mouse.Hit or t~=Mouse.Target then | |
93 | h,t=Mouse.Hit,Mouse.Target | |
94 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
95 | end | |
96 | --Wait 2 frames | |
97 | for i=1,2 do | |
98 | HB:Wait() | |
99 | end | |
100 | end]==],script) | |
101 | ||
102 | ----Sandboxed game object that allows the usage of client-side methods and services | |
103 | --Real game object | |
104 | local RealGame = game | |
105 | ||
106 | --Metatable for fake service | |
107 | local FakeService_Metatable = { | |
108 | __index = function(self,k) | |
109 | local s = rawget(self,"_RealService") | |
110 | if s then | |
111 | return typeof(s[k])=="function" | |
112 | and function(_,...)return s[k](s,...)end or s[k] | |
113 | end | |
114 | end, | |
115 | __newindex = function(self,k,v) | |
116 | local s = rawget(self,"_RealService") | |
117 | if s then s[k]=v end | |
118 | end | |
119 | } | |
120 | local function FakeService(t,RealService) | |
121 | t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService | |
122 | return setmetatable(t,FakeService_Metatable) | |
123 | end | |
124 | ||
125 | --Fake game object | |
126 | local FakeGame = { | |
127 | GetService = function(self,s) | |
128 | return rawget(self,s) or RealGame:GetService(s) | |
129 | end, | |
130 | Players = FakeService({ | |
131 | LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player) | |
132 | },"Players"), | |
133 | UserInputService = FakeService(UIS,"UserInputService"), | |
134 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
135 | RunService = FakeService({ | |
136 | _btrs = {}, | |
137 | RenderStepped = RealGame:GetService("RunService").Heartbeat, | |
138 | BindToRenderStep = function(self,name,_,fun) | |
139 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
140 | end, | |
141 | UnbindFromRenderStep = function(self,name) | |
142 | self._btrs[name]:Disconnect() | |
143 | end, | |
144 | },"RunService") | |
145 | } | |
146 | rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer) | |
147 | FakeGame.service = FakeGame.GetService | |
148 | FakeService(FakeGame,game) | |
149 | --Changing owner to fake player object to support owner:GetMouse() | |
150 | game,owner = FakeGame,FakeGame.Players.LocalPlayer | |
151 | end | |
152 | ||
153 | ||
154 | ||
155 | --Made by Rufus14 | |
156 | --[[ | |
157 | right arm: | |
158 | 1.58977389, 0.868433952, 0, -0.342011899, -0.939695716, 0, 0.939695716, -0.342011899, 0, 0, 0, 1 | |
159 | left arm: | |
160 | -1.71050239, 0.284187794, 0, 0.34202224, 0.939694464, 0, -0.939694464, 0.34202224, 0, 0, 0, 1 | |
161 | left leg: | |
162 | -0.939078927, -1.45322824, -0.0111112595, 0.939692974, 0.342019826, 0, -0.342019826, 0.939692974, 0, 0, 0, 1 | |
163 | right leg: | |
164 | 1.14675486, -1.46428752, 0.021125555, 0.866025448, -0.500000894, -1.92455758e-08, 0.49240464, 0.852868915, 0.173648074, -0.0868241191, -0.150383577, 0.984807789 | |
165 | humanoidrootpart: | |
166 | 0.108204141, 0, -0.61365068, 0.173649266, 0, 0.984804511, 0, 1, 0, -0.984804511, 0, 0.173649266 | |
167 | --]] | |
168 | creator = "Rufus14" | |
169 | mouse = game.Players.LocalPlayer:GetMouse() | |
170 | local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone() | |
171 | game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Remove() | |
172 | local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
173 | rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
174 | rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"] | |
175 | rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
176 | rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
177 | for i = 0,1 , 0.05 do | |
178 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.34609127, 0.444582939, -0.184151649, 0.92388171, 0.382677972, -1.05005725e-07, -0.35354507, 0.853548288, 0.38267988, 0.146443143, -0.353550762, 0.923871458),i) | |
179 | game:GetService("RunService").RenderStepped:wait() | |
180 | end | |
181 | snowball = Instance.new("Part", game.Players.LocalPlayer.Character) | |
182 | snowball.Shape = "Ball" | |
183 | snowball.Size = Vector3.new(math.random(0.8,1),math.random(0.8,1),math.random(0.8,1)) | |
184 | snowball.Material = "Sand" | |
185 | snowball.BrickColor = BrickColor.new("Institutional white") | |
186 | snowball:BreakJoints() | |
187 | snowballweld = Instance.new("Weld", game.Players.LocalPlayer.Character["Right Arm"]) | |
188 | snowballweld.Part0 = game.Players.LocalPlayer.Character["Right Arm"] | |
189 | snowballweld.Part1 = snowball | |
190 | snowballweld.C0 = snowballweld.C0 * CFrame.new(0,-1.2,0) | |
191 | pickup = Instance.new("Sound", game.Players.LocalPlayer.Character["Right Arm"]) | |
192 | pickup.Volume = 5 | |
193 | pickup.SoundId = "rbxassetid://153647514" | |
194 | pickup:Play() | |
195 | for i = 0,1 , 0.05 do | |
196 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),i) | |
197 | game:GetService("RunService").RenderStepped:wait() | |
198 | end | |
199 | rhandweld:destroy() | |
200 | rhandclone.Parent = game.Players.LocalPlayer.Character.Torso | |
201 | yellowballxd = false | |
202 | normalball = true | |
203 | blueball = false | |
204 | greenball = false | |
205 | using = false | |
206 | function change(key) | |
207 | key = key:lower() | |
208 | if key == "q" then | |
209 | if not using then | |
210 | using = true | |
211 | local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone() | |
212 | game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Remove() | |
213 | local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
214 | rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
215 | rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"] | |
216 | rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
217 | rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
218 | for i = 0,1 , 0.05 do | |
219 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.34609127, 0.444582939, -0.184151649, 0.92388171, 0.382677972, -1.05005725e-07, -0.35354507, 0.853548288, 0.38267988, 0.146443143, -0.353550762, 0.923871458),i) | |
220 | game:GetService("RunService").RenderStepped:wait() | |
221 | end | |
222 | pickup:Play() | |
223 | snowball.BrickColor = BrickColor.new("New Yeller") | |
224 | normalball = false | |
225 | yellowballxd = true | |
226 | blueball = false | |
227 | greenball = false | |
228 | for i = 0,1 , 0.05 do | |
229 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),i) | |
230 | game:GetService("RunService").RenderStepped:wait() | |
231 | end | |
232 | rhandweld:destroy() | |
233 | rhandclone.Parent = game.Players.LocalPlayer.Character.Torso | |
234 | using = false | |
235 | end | |
236 | end | |
237 | if key == "e" then | |
238 | if not using then | |
239 | using = true | |
240 | local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone() | |
241 | game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Remove() | |
242 | local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
243 | rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
244 | rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"] | |
245 | rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
246 | rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
247 | for i = 0,1 , 0.05 do | |
248 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.34609127, 0.444582939, -0.184151649, 0.92388171, 0.382677972, -1.05005725e-07, -0.35354507, 0.853548288, 0.38267988, 0.146443143, -0.353550762, 0.923871458),i) | |
249 | game:GetService("RunService").RenderStepped:wait() | |
250 | end | |
251 | pickup:Play() | |
252 | snowball.BrickColor = BrickColor.new("Electric blue") | |
253 | normalball = false | |
254 | yellowballxd = false | |
255 | blueball = true | |
256 | greenball = false | |
257 | for i = 0,1 , 0.05 do | |
258 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),i) | |
259 | game:GetService("RunService").RenderStepped:wait() | |
260 | end | |
261 | rhandweld:destroy() | |
262 | rhandclone.Parent = game.Players.LocalPlayer.Character.Torso | |
263 | using = false | |
264 | end | |
265 | end | |
266 | if key == "r" then | |
267 | if not using then | |
268 | using = true | |
269 | local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone() | |
270 | game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Remove() | |
271 | local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
272 | rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
273 | rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"] | |
274 | rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
275 | rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
276 | for i = 0,1 , 0.05 do | |
277 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.34609127, 0.444582939, -0.184151649, 0.92388171, 0.382677972, -1.05005725e-07, -0.35354507, 0.853548288, 0.38267988, 0.146443143, -0.353550762, 0.923871458),i) | |
278 | game:GetService("RunService").RenderStepped:wait() | |
279 | end | |
280 | pickup:Play() | |
281 | snowball.BrickColor = BrickColor.new("Lime green") | |
282 | normalball = false | |
283 | yellowballxd = false | |
284 | blueball = false | |
285 | greenball = true | |
286 | for i = 0,1 , 0.05 do | |
287 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),i) | |
288 | game:GetService("RunService").RenderStepped:wait() | |
289 | end | |
290 | rhandweld:destroy() | |
291 | rhandclone.Parent = game.Players.LocalPlayer.Character.Torso | |
292 | using = false | |
293 | end | |
294 | end | |
295 | if key == "t" then | |
296 | if not using then | |
297 | using = true | |
298 | local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone() | |
299 | game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Remove() | |
300 | local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
301 | rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
302 | rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"] | |
303 | rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
304 | rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
305 | for i = 0,1 , 0.05 do | |
306 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.34609127, 0.444582939, -0.184151649, 0.92388171, 0.382677972, -1.05005725e-07, -0.35354507, 0.853548288, 0.38267988, 0.146443143, -0.353550762, 0.923871458),i) | |
307 | game:GetService("RunService").RenderStepped:wait() | |
308 | end | |
309 | pickup:Play() | |
310 | snowball.BrickColor = BrickColor.new("Institutional white") | |
311 | normalball = true | |
312 | yellowballxd = false | |
313 | blueball = false | |
314 | greenball = false | |
315 | for i = 0,1 , 0.05 do | |
316 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),i) | |
317 | game:GetService("RunService").RenderStepped:wait() | |
318 | end | |
319 | rhandweld:destroy() | |
320 | rhandclone.Parent = game.Players.LocalPlayer.Character.Torso | |
321 | using = false | |
322 | end | |
323 | end | |
324 | end | |
325 | mouse.KeyDown:connect(change) | |
326 | function throw() | |
327 | if not using then | |
328 | if normalball then | |
329 | if not using then | |
330 | using = true | |
331 | game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 13 | |
332 | game.Players.LocalPlayer.Character.Humanoid.JumpPower = 35 | |
333 | local humanclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone() | |
334 | game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:destroy() | |
335 | local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
336 | humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart | |
337 | humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso | |
338 | -- | |
339 | local rramclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone() | |
340 | game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Remove() | |
341 | local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
342 | rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
343 | rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"] | |
344 | rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
345 | rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
346 | -- | |
347 | local lramclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone() | |
348 | game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Remove() | |
349 | local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
350 | lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
351 | lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"] | |
352 | lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
353 | lhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
354 | -- | |
355 | local llegclone = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone() | |
356 | game.Players.LocalPlayer.Character.Torso["Left Hip"]:Remove() | |
357 | local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
358 | llegweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
359 | llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"] | |
360 | llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
361 | llegweld.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
362 | local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone() | |
363 | game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove() | |
364 | local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
365 | rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
366 | rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"] | |
367 | rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
368 | rlegweld.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
369 | for i = 0,1 , 0.05 do | |
370 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(-0.311559588, 0, 0.53963238, -0.49999997, 0, -0.866022229, 0, 1, 0, 0.866017878, 0, -0.499999911),i) | |
371 | rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.911002815, -1.06217694, -0.0497762673, 0.866022468, -0.500005245, -2.20289962e-06, 0.492409468, 0.852865636, 0.173646986, -0.0868225172, -0.150383264, 0.984808028),i) | |
372 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.35458624, 0.413718224, -1.04902992e-05, 0.34201327, 0.939688265, -2.2649956e-06, -0.939694345, 0.342015535, -6.82124387e-13, 2.30360229e-06, 6.32919409e-06, 1.00000083),i) | |
373 | llegweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.759298325, -0.959312201, -0.0111142797, 0.939691424, 0.342023671, -2.26499242e-06, -0.3420237, 0.939691365, 1.13687488e-13, 2.12839291e-06, 7.746807e-07, 1),i) | |
374 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.44411337, 0.815430164, 8.35970241e-06, -0.342003971, -0.939698517, -6.73541899e-06, 0.939698517, -0.342004001, -4.54746592e-13, -2.30353999e-06, -6.32926321e-06, 1),i) | |
375 | game:GetService("RunService").RenderStepped:wait() | |
376 | end | |
377 | wait(0.5) | |
378 | local snowballclone = snowball:Clone() | |
379 | snowballclone.Parent = workspace | |
380 | snowballclone:BreakJoints() | |
381 | snowballclone.CFrame = game.Players.LocalPlayer.Character.Head.CFrame * CFrame.new(-3,0,0) | |
382 | snowball.Transparency = 1 | |
383 | snowballclone.Transparency = 0 | |
384 | snowballclone.CanCollide = true | |
385 | local velocityofsnow = Instance.new("BodyVelocity", snowballclone) | |
386 | velocityofsnow.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
387 | velocityofsnow.Velocity = mouse.Hit.lookVector * 70 | |
388 | local function ragdollify(part) | |
389 | snowballclone:destroy() | |
390 | local humanoid = part.Parent:findFirstChild("Humanoid") | |
391 | if humanoid then | |
392 | humanoid.Health = humanoid.Health - math.random(25,45) | |
393 | humanoid.PlatformStand = true | |
394 | local lshclone = humanoid.Parent.Torso["Left Shoulder"]:Clone() | |
395 | local rshclone = humanoid.Parent.Torso["Right Shoulder"]:Clone() | |
396 | local lhclone = humanoid.Parent.Torso["Left Hip"]:Clone() | |
397 | local rhclone = humanoid.Parent.Torso["Right Hip"]:Clone() | |
398 | local leftarm = humanoid.Parent["Left Arm"] | |
399 | local rightrm = humanoid.Parent["Right Arm"] | |
400 | local leftleg = humanoid.Parent["Left Leg"] | |
401 | local rightleg = humanoid.Parent["Right Leg"] | |
402 | humanoid.Parent.Torso["Left Hip"]:destroy() | |
403 | local head = humanoid.Parent.Head | |
404 | glue = Instance.new("Glue", humanoid.Parent.Torso) | |
405 | glue.Part0 = humanoid.Parent.Torso | |
406 | glue.Part1 = leftleg | |
407 | glue.Name = "Left leg" | |
408 | collider = Instance.new("Part", leftleg) | |
409 | collider.Position = Vector3.new(0,999,0) | |
410 | collider.Size = Vector3.new(1.5, 1, 1) | |
411 | collider.Shape = "Cylinder" | |
412 | local weld = Instance.new("Weld", collider) | |
413 | weld.Part0 = leftleg | |
414 | weld.Part1 = collider | |
415 | weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
416 | collider.TopSurface = "Smooth" | |
417 | collider.BottomSurface = "Smooth" | |
418 | collider.formFactor = "Symmetric" | |
419 | glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
420 | glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
421 | collider.Transparency = 1 | |
422 | ------------ | |
423 | humanoid.Parent.Torso["Right Hip"]:destroy() | |
424 | glue1 = Instance.new("Glue", humanoid.Parent.Torso) | |
425 | glue1.Part0 = humanoid.Parent.Torso | |
426 | glue1.Part1 = rightleg | |
427 | glue1.Name = "Right leg" | |
428 | collider1 = Instance.new("Part", rightleg) | |
429 | collider1.Position = Vector3.new(0,9999,0) | |
430 | collider1.Size = Vector3.new(1.5, 1, 1) | |
431 | collider1.Shape = "Cylinder" | |
432 | local weld1 = Instance.new("Weld", collider1) | |
433 | weld1.Part0 = rightleg | |
434 | weld1.Part1 = collider1 | |
435 | weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
436 | collider1.TopSurface = "Smooth" | |
437 | collider1.BottomSurface = "Smooth" | |
438 | collider1.formFactor = "Symmetric" | |
439 | glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
440 | glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
441 | collider1.Transparency = 1 | |
442 | ------------ | |
443 | humanoid.Parent.Torso["Right Shoulder"]:destroy() | |
444 | glue11 = Instance.new("Glue", humanoid.Parent.Torso) | |
445 | glue11.Part0 = humanoid.Parent.Torso | |
446 | glue11.Part1 = rightrm | |
447 | glue11.Name = "Right shoulder" | |
448 | collider11 = Instance.new("Part", rightrm) | |
449 | collider11.Position = Vector3.new(0,9999,0) | |
450 | collider11.Size = Vector3.new(1.8,1,1) | |
451 | collider11.Shape = "Cylinder" | |
452 | local weld11 = Instance.new("Weld", collider11) | |
453 | weld11.Part0 = rightrm | |
454 | weld11.Part1 = collider11 | |
455 | weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
456 | collider11.TopSurface = "Smooth" | |
457 | collider11.BottomSurface = "Smooth" | |
458 | collider11.formFactor = "Symmetric" | |
459 | glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
460 | glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
461 | collider11.Transparency = 1 | |
462 | ------------ | |
463 | humanoid.Parent.Torso["Left Shoulder"]:destroy() | |
464 | glue111 = Instance.new("Glue", humanoid.Parent.Torso) | |
465 | glue111.Part0 = humanoid.Parent.Torso | |
466 | glue111.Part1 = leftarm | |
467 | glue111.Name = "Left shoulder" | |
468 | collider111 = Instance.new("Part", leftarm) | |
469 | collider111.Position = Vector3.new(0,9999,0) | |
470 | collider111.Size = Vector3.new(1.5, 1, 1) | |
471 | collider111.Shape = "Cylinder" | |
472 | local weld111 = Instance.new("Weld", collider111) | |
473 | weld111.Part0 = leftarm | |
474 | weld111.Part1 = collider111 | |
475 | weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2) | |
476 | collider111.TopSurface = "Smooth" | |
477 | collider111.BottomSurface = "Smooth" | |
478 | collider111.formFactor = "Symmetric" | |
479 | glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
480 | glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
481 | collider111.Transparency = 1 | |
482 | ----------------- | |
483 | wait(3.5) | |
484 | lshclone.Parent = humanoid.Parent.Torso | |
485 | glue:destroy() | |
486 | rshclone.Parent = humanoid.Parent.Torso | |
487 | glue1:destroy() | |
488 | lhclone.Parent = humanoid.Parent.Torso | |
489 | glue11:destroy() | |
490 | rhclone.Parent = humanoid.Parent.Torso | |
491 | glue111:destroy() | |
492 | collider:destroy() | |
493 | collider1:destroy() | |
494 | collider11:destroy() | |
495 | collider111:destroy() | |
496 | humanoid.PlatformStand = false | |
497 | end | |
498 | end | |
499 | snowballclone.Touched:connect(ragdollify) | |
500 | for i = 0,1 , 0.05 do | |
501 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0.585555017, 0, -0.213117853, 0.939702094, 0, 0.342020571, 0, 1, 0, -0.342020601, 0, 0.939702094),i) | |
502 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.49296713, 0.461903334, -3.31678239e-05, 0.939688385, 0.342033148, -2.14414758e-05, -0.342033029, 0.939687967, -1.55231817e-06, 2.64785322e-05, 1.12897578e-05, 0.999999583),i) | |
503 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.31839883, 0.43920517, 2.37754084e-05, 0.939700186, -0.342000574, -1.70388394e-05, 0.342000455, 0.939699888, 7.7619211e-07, 2.26072043e-05, -9.05381148e-06, 0.999999583),i) | |
504 | game:GetService("RunService").RenderStepped:wait() | |
505 | end | |
506 | velocityofsnow:destroy() | |
507 | wait(0.5) | |
508 | for i = 0,1 , 0.03 do | |
509 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i) | |
510 | rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0),i) | |
511 | llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0),i) | |
512 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),i) | |
513 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),i) | |
514 | game:GetService("RunService").RenderStepped:wait() | |
515 | end | |
516 | snowball.Transparency = 0 | |
517 | rlegweld:destroy() | |
518 | llegweld:destroy() | |
519 | lhandweld:destroy() | |
520 | rhandweld:destroy() | |
521 | humanoidrootpart:destroy() | |
522 | rramclone.Parent = game.Players.LocalPlayer.Character.Torso | |
523 | lramclone.Parent = game.Players.LocalPlayer.Character.Torso | |
524 | humanclone.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart | |
525 | llegclone.Parent = game.Players.LocalPlayer.Character.Torso | |
526 | rlegclone.Parent = game.Players.LocalPlayer.Character.Torso | |
527 | game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16 | |
528 | game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50 | |
529 | using = false | |
530 | end | |
531 | end | |
532 | if yellowballxd then | |
533 | if not using then | |
534 | using = true | |
535 | game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 13 | |
536 | game.Players.LocalPlayer.Character.Humanoid.JumpPower = 35 | |
537 | local humanclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone() | |
538 | game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:destroy() | |
539 | local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
540 | humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart | |
541 | humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso | |
542 | -- | |
543 | local rramclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone() | |
544 | game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Remove() | |
545 | local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
546 | rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
547 | rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"] | |
548 | rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
549 | rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
550 | -- | |
551 | local lramclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone() | |
552 | game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Remove() | |
553 | local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
554 | lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
555 | lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"] | |
556 | lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
557 | lhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
558 | -- | |
559 | local llegclone = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone() | |
560 | game.Players.LocalPlayer.Character.Torso["Left Hip"]:Remove() | |
561 | local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
562 | llegweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
563 | llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"] | |
564 | llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
565 | llegweld.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
566 | local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone() | |
567 | game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove() | |
568 | local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
569 | rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
570 | rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"] | |
571 | rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
572 | rlegweld.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
573 | for i = 0,1 , 0.05 do | |
574 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(-0.311559588, 0, 0.53963238, -0.49999997, 0, -0.866022229, 0, 1, 0, 0.866017878, 0, -0.499999911),i) | |
575 | rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.911002815, -1.06217694, -0.0497762673, 0.866022468, -0.500005245, -2.20289962e-06, 0.492409468, 0.852865636, 0.173646986, -0.0868225172, -0.150383264, 0.984808028),i) | |
576 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.35458624, 0.413718224, -1.04902992e-05, 0.34201327, 0.939688265, -2.2649956e-06, -0.939694345, 0.342015535, -6.82124387e-13, 2.30360229e-06, 6.32919409e-06, 1.00000083),i) | |
577 | llegweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.759298325, -0.959312201, -0.0111142797, 0.939691424, 0.342023671, -2.26499242e-06, -0.3420237, 0.939691365, 1.13687488e-13, 2.12839291e-06, 7.746807e-07, 1),i) | |
578 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.44411337, 0.815430164, 8.35970241e-06, -0.342003971, -0.939698517, -6.73541899e-06, 0.939698517, -0.342004001, -4.54746592e-13, -2.30353999e-06, -6.32926321e-06, 1),i) | |
579 | game:GetService("RunService").RenderStepped:wait() | |
580 | end | |
581 | wait(0.5) | |
582 | local snowballclone = snowball:Clone() | |
583 | snowballclone.Parent = workspace | |
584 | snowballclone:BreakJoints() | |
585 | snowballclone.CFrame = game.Players.LocalPlayer.Character.Head.CFrame * CFrame.new(-3,0,0) | |
586 | snowball.Transparency = 1 | |
587 | snowballclone.Transparency = 0 | |
588 | snowballclone.CanCollide = true | |
589 | local velocityofsnow = Instance.new("BodyVelocity", snowballclone) | |
590 | velocityofsnow.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
591 | velocityofsnow.Velocity = mouse.Hit.lookVector * 70 | |
592 | local function ragdollify(part) | |
593 | snowballclone:destroy() | |
594 | local humanoid = part.Parent:findFirstChild("Humanoid") | |
595 | if humanoid then | |
596 | humanoid.Health = humanoid.Health - math.random(25,45) | |
597 | humanoid.WalkSpeed = humanoid.WalkSpeed - math.random(5,8) | |
598 | end | |
599 | end | |
600 | snowballclone.Touched:connect(ragdollify) | |
601 | for i = 0,1 , 0.05 do | |
602 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0.585555017, 0, -0.213117853, 0.939702094, 0, 0.342020571, 0, 1, 0, -0.342020601, 0, 0.939702094),i) | |
603 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.49296713, 0.461903334, -3.31678239e-05, 0.939688385, 0.342033148, -2.14414758e-05, -0.342033029, 0.939687967, -1.55231817e-06, 2.64785322e-05, 1.12897578e-05, 0.999999583),i) | |
604 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.31839883, 0.43920517, 2.37754084e-05, 0.939700186, -0.342000574, -1.70388394e-05, 0.342000455, 0.939699888, 7.7619211e-07, 2.26072043e-05, -9.05381148e-06, 0.999999583),i) | |
605 | game:GetService("RunService").RenderStepped:wait() | |
606 | end | |
607 | velocityofsnow:destroy() | |
608 | wait(0.5) | |
609 | for i = 0,1 , 0.03 do | |
610 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i) | |
611 | rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0),i) | |
612 | llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0),i) | |
613 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),i) | |
614 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),i) | |
615 | game:GetService("RunService").RenderStepped:wait() | |
616 | end | |
617 | snowball.Transparency = 0 | |
618 | rlegweld:destroy() | |
619 | llegweld:destroy() | |
620 | lhandweld:destroy() | |
621 | rhandweld:destroy() | |
622 | humanoidrootpart:destroy() | |
623 | rramclone.Parent = game.Players.LocalPlayer.Character.Torso | |
624 | lramclone.Parent = game.Players.LocalPlayer.Character.Torso | |
625 | humanclone.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart | |
626 | llegclone.Parent = game.Players.LocalPlayer.Character.Torso | |
627 | rlegclone.Parent = game.Players.LocalPlayer.Character.Torso | |
628 | game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16 | |
629 | game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50 | |
630 | using = false | |
631 | end | |
632 | end | |
633 | if blueball then | |
634 | if not using then | |
635 | using = true | |
636 | game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 13 | |
637 | game.Players.LocalPlayer.Character.Humanoid.JumpPower = 35 | |
638 | local humanclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone() | |
639 | game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:destroy() | |
640 | local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
641 | humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart | |
642 | humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso | |
643 | -- | |
644 | local rramclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone() | |
645 | game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Remove() | |
646 | local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
647 | rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
648 | rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"] | |
649 | rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
650 | rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
651 | -- | |
652 | local lramclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone() | |
653 | game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Remove() | |
654 | local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
655 | lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
656 | lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"] | |
657 | lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
658 | lhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
659 | -- | |
660 | local llegclone = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone() | |
661 | game.Players.LocalPlayer.Character.Torso["Left Hip"]:Remove() | |
662 | local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
663 | llegweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
664 | llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"] | |
665 | llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
666 | llegweld.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
667 | local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone() | |
668 | game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove() | |
669 | local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
670 | rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
671 | rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"] | |
672 | rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
673 | rlegweld.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
674 | for i = 0,1 , 0.05 do | |
675 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(-0.311559588, 0, 0.53963238, -0.49999997, 0, -0.866022229, 0, 1, 0, 0.866017878, 0, -0.499999911),i) | |
676 | rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.911002815, -1.06217694, -0.0497762673, 0.866022468, -0.500005245, -2.20289962e-06, 0.492409468, 0.852865636, 0.173646986, -0.0868225172, -0.150383264, 0.984808028),i) | |
677 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.35458624, 0.413718224, -1.04902992e-05, 0.34201327, 0.939688265, -2.2649956e-06, -0.939694345, 0.342015535, -6.82124387e-13, 2.30360229e-06, 6.32919409e-06, 1.00000083),i) | |
678 | llegweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.759298325, -0.959312201, -0.0111142797, 0.939691424, 0.342023671, -2.26499242e-06, -0.3420237, 0.939691365, 1.13687488e-13, 2.12839291e-06, 7.746807e-07, 1),i) | |
679 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.44411337, 0.815430164, 8.35970241e-06, -0.342003971, -0.939698517, -6.73541899e-06, 0.939698517, -0.342004001, -4.54746592e-13, -2.30353999e-06, -6.32926321e-06, 1),i) | |
680 | game:GetService("RunService").RenderStepped:wait() | |
681 | end | |
682 | wait(0.5) | |
683 | local snowballclone = snowball:Clone() | |
684 | snowballclone.Parent = workspace | |
685 | snowballclone:BreakJoints() | |
686 | snowballclone.CFrame = game.Players.LocalPlayer.Character.Head.CFrame * CFrame.new(-3,0,0) | |
687 | snowball.Transparency = 1 | |
688 | snowballclone.Transparency = 0 | |
689 | snowballclone.CanCollide = true | |
690 | local velocityofsnow = Instance.new("BodyVelocity", snowballclone) | |
691 | velocityofsnow.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
692 | velocityofsnow.Velocity = mouse.Hit.lookVector * 70 | |
693 | local function ragdollify(part) | |
694 | snowballclone:destroy() | |
695 | local humanoid = part.Parent:findFirstChild("Humanoid") | |
696 | if humanoid then | |
697 | for i = 1,math.random(7,9) do | |
698 | local ded = humanoid.Parent.Head:findFirstChild("Died") | |
699 | local freeze = Instance.new("Part", humanoid.Parent) | |
700 | freeze.Transparency = 0.6 | |
701 | freeze.BrickColor = BrickColor.new("Electric blue") | |
702 | freeze.Size = Vector3.new(6,10,6) | |
703 | freeze.Material = "Ice" | |
704 | freeze.Anchored = true | |
705 | humanoid.Parent.Torso.Anchored = true | |
706 | freeze.CFrame = humanoid.Parent.Torso.CFrame | |
707 | humanoid.Health = humanoid.Health - math.random(35,45) | |
708 | wait(3) | |
709 | freeze:destroy() | |
710 | humanoid.Parent.Torso.Anchored = false | |
711 | end | |
712 | end | |
713 | end | |
714 | snowballclone.Touched:connect(ragdollify) | |
715 | for i = 0,1 , 0.05 do | |
716 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0.585555017, 0, -0.213117853, 0.939702094, 0, 0.342020571, 0, 1, 0, -0.342020601, 0, 0.939702094),i) | |
717 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.49296713, 0.461903334, -3.31678239e-05, 0.939688385, 0.342033148, -2.14414758e-05, -0.342033029, 0.939687967, -1.55231817e-06, 2.64785322e-05, 1.12897578e-05, 0.999999583),i) | |
718 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.31839883, 0.43920517, 2.37754084e-05, 0.939700186, -0.342000574, -1.70388394e-05, 0.342000455, 0.939699888, 7.7619211e-07, 2.26072043e-05, -9.05381148e-06, 0.999999583),i) | |
719 | game:GetService("RunService").RenderStepped:wait() | |
720 | end | |
721 | velocityofsnow:destroy() | |
722 | wait(0.5) | |
723 | for i = 0,1 , 0.03 do | |
724 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i) | |
725 | rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0),i) | |
726 | llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0),i) | |
727 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),i) | |
728 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),i) | |
729 | game:GetService("RunService").RenderStepped:wait() | |
730 | end | |
731 | snowball.Transparency = 0 | |
732 | rlegweld:destroy() | |
733 | llegweld:destroy() | |
734 | lhandweld:destroy() | |
735 | rhandweld:destroy() | |
736 | humanoidrootpart:destroy() | |
737 | rramclone.Parent = game.Players.LocalPlayer.Character.Torso | |
738 | lramclone.Parent = game.Players.LocalPlayer.Character.Torso | |
739 | humanclone.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart | |
740 | llegclone.Parent = game.Players.LocalPlayer.Character.Torso | |
741 | rlegclone.Parent = game.Players.LocalPlayer.Character.Torso | |
742 | game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16 | |
743 | game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50 | |
744 | using = false | |
745 | end | |
746 | end | |
747 | if greenball then | |
748 | if not using then | |
749 | using = true | |
750 | game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 13 | |
751 | game.Players.LocalPlayer.Character.Humanoid.JumpPower = 35 | |
752 | local humanclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone() | |
753 | game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:destroy() | |
754 | local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
755 | humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart | |
756 | humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso | |
757 | -- | |
758 | local rramclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone() | |
759 | game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Remove() | |
760 | local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
761 | rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
762 | rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"] | |
763 | rhandweld.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
764 | rhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0) | |
765 | -- | |
766 | local lramclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone() | |
767 | game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Remove() | |
768 | local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
769 | lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
770 | lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"] | |
771 | lhandweld.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
772 | lhandweld.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0) | |
773 | -- | |
774 | local llegclone = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone() | |
775 | game.Players.LocalPlayer.Character.Torso["Left Hip"]:Remove() | |
776 | local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
777 | llegweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
778 | llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"] | |
779 | llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
780 | llegweld.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0) | |
781 | local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone() | |
782 | game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove() | |
783 | local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso) | |
784 | rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso | |
785 | rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"] | |
786 | rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
787 | rlegweld.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0) | |
788 | for i = 0,1 , 0.05 do | |
789 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(-0.311559588, 0, 0.53963238, -0.49999997, 0, -0.866022229, 0, 1, 0, 0.866017878, 0, -0.499999911),i) | |
790 | rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.911002815, -1.06217694, -0.0497762673, 0.866022468, -0.500005245, -2.20289962e-06, 0.492409468, 0.852865636, 0.173646986, -0.0868225172, -0.150383264, 0.984808028),i) | |
791 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.35458624, 0.413718224, -1.04902992e-05, 0.34201327, 0.939688265, -2.2649956e-06, -0.939694345, 0.342015535, -6.82124387e-13, 2.30360229e-06, 6.32919409e-06, 1.00000083),i) | |
792 | llegweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.759298325, -0.959312201, -0.0111142797, 0.939691424, 0.342023671, -2.26499242e-06, -0.3420237, 0.939691365, 1.13687488e-13, 2.12839291e-06, 7.746807e-07, 1),i) | |
793 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.44411337, 0.815430164, 8.35970241e-06, -0.342003971, -0.939698517, -6.73541899e-06, 0.939698517, -0.342004001, -4.54746592e-13, -2.30353999e-06, -6.32926321e-06, 1),i) | |
794 | game:GetService("RunService").RenderStepped:wait() | |
795 | end | |
796 | wait(0.5) | |
797 | local snowballclone = snowball:Clone() | |
798 | snowballclone.Parent = workspace | |
799 | snowballclone:BreakJoints() | |
800 | snowballclone.CFrame = game.Players.LocalPlayer.Character.Head.CFrame * CFrame.new(-3,0,0) | |
801 | snowball.Transparency = 1 | |
802 | snowballclone.Transparency = 0 | |
803 | snowballclone.CanCollide = true | |
804 | local velocityofsnow = Instance.new("BodyVelocity", snowballclone) | |
805 | velocityofsnow.MaxForce = Vector3.new(math.huge,math.huge,math.huge) | |
806 | velocityofsnow.Velocity = mouse.Hit.lookVector * 70 | |
807 | local function ragdollify(part) | |
808 | snowballclone:destroy() | |
809 | local humanoid = part.Parent:findFirstChild("Humanoid") | |
810 | if humanoid then | |
811 | for i = 1,math.random(7,9) do | |
812 | local ded = humanoid.Parent.Head:findFirstChild("Died") | |
813 | if ded then | |
814 | humanoid.Parent.Head.Died:Play() | |
815 | end | |
816 | humanoid.Health = humanoid.Health - math.random(8,13) | |
817 | wait(1) | |
818 | end | |
819 | end | |
820 | end | |
821 | snowballclone.Touched:connect(ragdollify) | |
822 | for i = 0,1 , 0.05 do | |
823 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0.585555017, 0, -0.213117853, 0.939702094, 0, 0.342020571, 0, 1, 0, -0.342020601, 0, 0.939702094),i) | |
824 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.49296713, 0.461903334, -3.31678239e-05, 0.939688385, 0.342033148, -2.14414758e-05, -0.342033029, 0.939687967, -1.55231817e-06, 2.64785322e-05, 1.12897578e-05, 0.999999583),i) | |
825 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.31839883, 0.43920517, 2.37754084e-05, 0.939700186, -0.342000574, -1.70388394e-05, 0.342000455, 0.939699888, 7.7619211e-07, 2.26072043e-05, -9.05381148e-06, 0.999999583),i) | |
826 | game:GetService("RunService").RenderStepped:wait() | |
827 | end | |
828 | velocityofsnow:destroy() | |
829 | wait(0.5) | |
830 | for i = 0,1 , 0.03 do | |
831 | humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i) | |
832 | rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0),i) | |
833 | llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0),i) | |
834 | lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),i) | |
835 | rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0),i) | |
836 | game:GetService("RunService").RenderStepped:wait() | |
837 | end | |
838 | snowball.Transparency = 0 | |
839 | rlegweld:destroy() | |
840 | llegweld:destroy() | |
841 | lhandweld:destroy() | |
842 | rhandweld:destroy() | |
843 | humanoidrootpart:destroy() | |
844 | rramclone.Parent = game.Players.LocalPlayer.Character.Torso | |
845 | lramclone.Parent = game.Players.LocalPlayer.Character.Torso | |
846 | humanclone.Parent = game.Players.LocalPlayer.Character.HumanoidRootPart | |
847 | llegclone.Parent = game.Players.LocalPlayer.Character.Torso | |
848 | rlegclone.Parent = game.Players.LocalPlayer.Character.Torso | |
849 | game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16 | |
850 | game.Players.LocalPlayer.Character.Humanoid.JumpPower = 50 | |
851 | using = false | |
852 | end | |
853 | end | |
854 | end | |
855 | end | |
856 | mouse.Button1Down:connect(throw) | |
857 | if creator == "Rufus14" then | |
858 | print("Made by Rufus14") | |
859 | else | |
860 | print"a dumb faggot changed credits, its by Rufus14" | |
861 | end |