SHOW:
|
|
- or go back to the newest paste.
1 | - | if workspace[game.Players.LocalPlayer.Name]:FindFirstChild("Raw") then |
1 | + | -- [[ Name: Commander CR by ??? ]] -- |
2 | -- [[ Converted: By Melon ]] -- | |
3 | - | game:GetService("StarterGui"):SetCore("SendNotification", { |
3 | + | -- [[ Reanimate: By Emper ]] -- |
4 | -- [[ Description: nothing to put ]] -- | |
5 | - | Title = "already reanimated", |
5 | + | |
6 | - | Text = "" |
6 | + | -- [[ Hats ]] -- |
7 | ||
8 | - | return |
8 | + | -- [[ Free ]] -- |
9 | -- [[ www.roblox.com/catalog/4819740796/Robox ]] -- | |
10 | - | workspace[game.Players.LocalPlayer.Name].Archivable = true |
10 | + | -- [[ www.roblox.com/catalog/3409612660/International-Fedora-USA ]] -- |
11 | - | local cln = workspace[game.Players.LocalPlayer.Name]:Clone() |
11 | + | -- [[ www.roblox.com/catalog/3398308134/International-Fedora-Canada ]] -- |
12 | - | cln.Name = "Raw"; cln.Parent = workspace[game.Players.LocalPlayer.Name] |
12 | + | -- [[ www.roblox.com/catalog/3033908130/International-Fedora-France ]] -- |
13 | - | workspace[game.Players.LocalPlayer.Name].HumanoidRootPart:Destroy() |
13 | + | -- [[ www.roblox.com/catalog/3033910400/International-Fedora-Germany ]] -- |
14 | - | workspace[game.Players.LocalPlayer.Name].Animate.Disabled = true |
14 | + | |
15 | - | for i,v in pairs(cln:GetDescendants()) do |
15 | + | -- [[ Paid (1) ]] -- |
16 | - | if v:IsA("BasePart") then v.Transparency = 1 end |
16 | + | -- [[ www.roblox.com/catalog/14255528083/Torso-Extension ]] -- |
17 | -- [[ www.roblox.com/catalog/14255556501/Extra-Right-White-Arm ]] -- | |
18 | - | cln.Head.face.Transparency = 1 |
18 | + | -- [[ www.roblox.com/catalog/14255554762/Extra-Left-White-Arm ]] -- |
19 | - | _G.reanim = game:GetService("RunService").Stepped:Connect(function() |
19 | + | -- [[ www.roblox.com/catalog/14768693948/White-Extended-Right-Arm ]] -- |
20 | - | workspace[game.Players.LocalPlayer.Name]:FindFirstChildOfClass("Humanoid").Died:Connect(function() |
20 | + | -- [[ www.roblox.com/catalog/14768701869/White-Extended-Left-Arm ]] -- |
21 | - | _G.reanim:Disconnect() |
21 | + | |
22 | - | end) |
22 | + | -- [[ Paid (2) ]] -- |
23 | - | if workspace[game.Players.LocalPlayer.Name]:FindFirstChildOfClass("Humanoid").Jump == true then |
23 | + | -- [[ www.roblox.com/catalog/14255528083/Torso-Extension ]] -- |
24 | - | cln:FindFirstChildOfClass("Humanoid").Jump = true |
24 | + | -- [[ www.roblox.com/catalog/11159410305/Rectangle-Head-For-Headless ]] -- |
25 | - | cln:FindFirstChildOfClass("Humanoid").Sit = false |
25 | + | -- [[ www.roblox.com/catalog/11263254795/Dummy-Head-For-Headless ]] -- |
26 | -- [[ www.roblox.com/catalog/12344545199/Extra-Left-hand-moving-Blocky-white ]] -- | |
27 | - | for i,v in pairs(workspace[game.Players.LocalPlayer.Name]:FindFirstChildOfClass("Humanoid"):GetPlayingAnimationTracks()) do |
27 | + | -- [[ www.roblox.com/catalog/12344591101/Extra-Right-hand-moving-Blocky-white ]] -- |
28 | - | v:Stop() |
28 | + | |
29 | -- [[ Guns ]] -- | |
30 | - | for i,v in pairs(workspace[game.Players.LocalPlayer.Name]:GetDescendants()) do |
30 | + | |
31 | - | if v:IsA("BasePart") then v.CanCollide = false end |
31 | + | -- [[ www.roblox.com/catalog/13760686814/Classic-MARKA-17M-Valkan-Left ]] -- |
32 | -- [[ www.roblox.com/catalog/4623059912/Starslayer-Railgun ]] -- | |
33 | - | cln:FindFirstChildOfClass("Humanoid"):Move(workspace[game.Players.LocalPlayer.Name]:FindFirstChildOfClass("Humanoid").MoveDirection,false) |
33 | + | -- [[ www.roblox.com/catalog/14683431575/Law-Enforcement-Beanbag ]] -- |
34 | -- [[ www.roblox.com/catalog/5136154487/DG-40-Archangel-Sniper-Rifle-Black ]] -- | |
35 | - | for i,v in pairs(workspace[game.Players.LocalPlayer.Name].Torso:GetChildren()) do |
35 | + | -- [[ www.roblox.com/catalog/12830271515/White-Cyber-Heavy-Revolver-Left ]] -- |
36 | - | if v:IsA("Motor6D") and v.Name ~= "Neck" then v:Destroy() end |
36 | + | -- [[ * FREE * www.roblox.com/catalog/10775031176/The-Pogo ]] -- |
37 | -- [[ * FREE * www.roblox.com/catalog/5552252553/Kinetic-Staff ]] -- | |
38 | - | for i,v in pairs(workspace[game.Players.LocalPlayer.Name]:GetChildren()) do |
38 | + | -- [[ The list above is the supported hats. ]] -- |
39 | - | if v:IsA("Accessory") then v.Handle:BreakJoints() end |
39 | + | |
40 | game:GetService("StarterGui"):SetCore("SendNotification", { | |
41 | - | _G.reanim2 = game:GetService("RunService").Heartbeat:Connect(function() |
41 | + | Title = "Melon's (FE) Converts/Scripts"; |
42 | - | workspace[game.Players.LocalPlayer.Name]:FindFirstChildOfClass("Humanoid").Died:Connect(function() |
42 | + | Text = "Thanks for using!"; |
43 | - | _G.reanim2:Disconnect() |
43 | + | Icon = "rbxthumb://type=Asset&id=11561641603&w=150&h=150"}) |
44 | - | end) |
44 | + | Duration = 3; |
45 | - | for i,v in pairs(workspace[game.Players.LocalPlayer.Name]:GetChildren()) do |
45 | + | |
46 | - | if v:IsA("BasePart") then v.Velocity = Vector3.new(0,30,0) + cln:FindFirstChild("Torso").CFrame.LookVector * 10 |
46 | + | if not game:IsLoaded() then |
47 | - | elseif v:IsA("Accessory") then v.Handle.Velocity = Vector3.new(0,30,0) + cln:FindFirstChild("Torso").CFrame.LookVector * 10 end |
47 | + | game.Loaded:Wait() |
48 | - | |
48 | + | |
49 | - | if v:IsA("Accessory") then |
49 | + | |
50 | - | v.Handle.CFrame = cln[v.Name].Handle.CFrame |
50 | + | local function FindInstance(Parent, ClassName, Name) |
51 | for _, Instance in pairs(Parent:GetChildren()) do | |
52 | if Instance:IsA(ClassName) and Instance.Name == Name then | |
53 | - | workspace[game.Players.LocalPlayer.Name].Torso.CFrame = cln.Torso.CFrame |
53 | + | return Instance |
54 | - | workspace[game.Players.LocalPlayer.Name]["Right Arm"].CFrame = cln["Right Arm"].CFrame |
54 | + | |
55 | - | workspace[game.Players.LocalPlayer.Name]["Left Arm"].CFrame = cln["Left Arm"].CFrame |
55 | + | |
56 | - | workspace[game.Players.LocalPlayer.Name]["Right Leg"].CFrame = cln["Right Leg"].CFrame |
56 | + | |
57 | - | workspace[game.Players.LocalPlayer.Name]["Left Leg"].CFrame = cln["Left Leg"].CFrame |
57 | + | |
58 | local function WaitForClass(Parent, ClassName) | |
59 | local Instance = Parent:FindFirstChildOfClass(ClassName) | |
60 | - | workspace:FindFirstChildOfClass("Camera").CameraSubject = cln:FindFirstChildOfClass("Humanoid") |
60 | + | |
61 | - | game:GetService("StarterGui"):SetCore("SendNotification", { |
61 | + | while not Instance and Parent do |
62 | - | Title = "Reanimated", |
62 | + | Parent.ChildAdded:Wait() |
63 | - | Text = "ok" |
63 | + | Instance = Parent:FindFirstChildOfClass(ClassName) |
64 | end | |
65 | ||
66 | - | local ScreenGui = Instance.new("ScreenGui") |
66 | + | return Instance |
67 | - | local Frame = Instance.new("Frame") |
67 | + | |
68 | - | local aniid = Instance.new("TextBox") |
68 | + | |
69 | - | local Looped = Instance.new("TextButton") |
69 | + | local function WaitForClassOfName(Parent, ...) |
70 | - | local Play = Instance.new("TextButton") |
70 | + | local Instance = FindInstance(Parent, ...) |
71 | - | local TextLabel = Instance.new("TextLabel") |
71 | + | |
72 | while not Instance and Parent do | |
73 | Parent.ChildAdded:Wait() | |
74 | - | ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui") |
74 | + | Instance = FindInstance(Parent, ...) |
75 | - | ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling |
75 | + | |
76 | ||
77 | - | Frame.Parent = ScreenGui |
77 | + | return Instance |
78 | - | Frame.BackgroundColor3 = Color3.fromRGB(116, 116, 116) |
78 | + | |
79 | - | Frame.BorderColor3 = Color3.fromRGB(0, 0, 0) |
79 | + | |
80 | - | Frame.BorderSizePixel = 5 |
80 | + | local Fling = { } |
81 | - | Frame.Position = UDim2.new(0.322779924, 0, 0.720987678, 0) |
81 | + | local Aligns = { } |
82 | - | Frame.Size = UDim2.new(0.353667945, 0, 0.177777782, 0) |
82 | + | local Blacklist = { } |
83 | - | Frame.Draggable = true |
83 | + | local Accessories = { } |
84 | - | Frame.Active = true |
84 | + | local Attachments = { } |
85 | ||
86 | - | aniid.Name = "aniid" |
86 | + | local Instancenew = Instance.new |
87 | - | aniid.Parent = Frame |
87 | + | |
88 | - | aniid.BackgroundColor3 = Color3.fromRGB(84, 84, 84) |
88 | + | local taskwait = task.wait |
89 | - | aniid.BorderColor3 = Color3.fromRGB(0, 0, 0) |
89 | + | local taskspawn = task.spawn |
90 | - | aniid.BorderSizePixel = 2 |
90 | + | local taskdefer = task.defer |
91 | - | aniid.Position = UDim2.new(0.0393013097, 0, 0.465277791, 0) |
91 | + | |
92 | - | aniid.Size = UDim2.new(0.624454141, 0, 0.451388896, 0) |
92 | + | local mathabs = math.abs |
93 | - | aniid.Font = Enum.Font.SourceSans |
93 | + | local mathcos = math.cos |
94 | - | aniid.PlaceholderColor3 = Color3.fromRGB(0, 0, 0) |
94 | + | local mathrandom = math.random |
95 | - | aniid.PlaceholderText = "Animation Id" |
95 | + | |
96 | - | aniid.Text = "" |
96 | + | local stringmatch = string.match |
97 | - | aniid.TextColor3 = Color3.fromRGB(0, 0, 0) |
97 | + | |
98 | - | aniid.TextScaled = true |
98 | + | local osclock = os.clock |
99 | - | aniid.TextSize = 14.000 |
99 | + | |
100 | - | aniid.TextWrapped = true |
100 | + | local tableinsert = table.insert |
101 | local tableclear = table.clear | |
102 | - | Looped.Name = "Looped" |
102 | + | local tablefind = table.find |
103 | - | Looped.Parent = Frame |
103 | + | |
104 | - | Looped.BackgroundColor3 = Color3.fromRGB(255, 0, 0) |
104 | + | local CFramenew = CFrame.new |
105 | - | Looped.BorderColor3 = Color3.fromRGB(0, 0, 0) |
105 | + | local CFrameAngles = CFrame.Angles |
106 | - | Looped.BorderSizePixel = 2 |
106 | + | local CFrameidentity = CFrame.identity |
107 | - | Looped.Position = UDim2.new(0.698689938, 0, 0.0972222164, 0) |
107 | + | |
108 | - | Looped.Size = UDim2.new(0.281659395, 0, 0.319444448, 0) |
108 | + | local Vector3new = Vector3.new |
109 | - | Looped.Font = Enum.Font.SourceSans |
109 | + | local Vector3zero = Vector3.zero |
110 | - | Looped.Text = "Loop" |
110 | + | |
111 | - | Looped.TextColor3 = Color3.fromRGB(0, 0, 0) |
111 | + | local Sleep = CFrameidentity |
112 | - | Looped.TextScaled = true |
112 | + | local Velocity = Vector3new(0, 16384, 0) |
113 | - | Looped.TextSize = 14.000 |
113 | + | local Angular = 0 |
114 | - | Looped.TextWrapped = true |
114 | + | local Linear = 0 |
115 | ||
116 | - | Play.Name = "Play" |
116 | + | local Workspace = game:FindFirstChildOfClass("Workspace") |
117 | - | Play.Parent = Frame |
117 | + | local CurrentCamera = Workspace.CurrentCamera |
118 | - | Play.BackgroundColor3 = Color3.fromRGB(255, 0, 0) |
118 | + | |
119 | - | Play.BorderColor3 = Color3.fromRGB(0, 0, 0) |
119 | + | local Players = game:FindFirstChildOfClass("Players") |
120 | - | Play.BorderSizePixel = 2 |
120 | + | |
121 | - | Play.Position = UDim2.new(0.698689938, 0, 0.597222209, 0) |
121 | + | local LocalPlayer = Players.LocalPlayer |
122 | - | Play.Size = UDim2.new(0.281659395, 0, 0.319444448, 0) |
122 | + | local Mouse = LocalPlayer:GetMouse() |
123 | - | Play.Font = Enum.Font.SourceSans |
123 | + | |
124 | - | Play.Text = "Play" |
124 | + | local PostSimulation = game:FindFirstChildOfClass("RunService").PostSimulation |
125 | - | Play.TextColor3 = Color3.fromRGB(0, 0, 0) |
125 | + | |
126 | - | Play.TextScaled = true |
126 | + | local Character = LocalPlayer.Character |
127 | - | Play.TextSize = 14.000 |
127 | + | local CharacterClone = Instancenew("Model") |
128 | - | Play.TextWrapped = true |
128 | + | |
129 | local StarterGui = game:FindFirstChildOfClass("StarterGui") | |
130 | - | TextLabel.Parent = Frame |
130 | + | local BindableEvent = Instancenew("BindableEvent") |
131 | - | TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255) |
131 | + | |
132 | - | TextLabel.BackgroundTransparency = 1.000 |
132 | + | local UserInputService = game:FindFirstChildOfClass("UserInputService") |
133 | - | TextLabel.Position = UDim2.new(0.0240174681, 0, 0.0625, 0) |
133 | + | local UserInputType = Enum.UserInputType |
134 | - | TextLabel.Size = UDim2.new(0.639737964, 0, 0.354166657, 0) |
134 | + | |
135 | - | TextLabel.Font = Enum.Font.SourceSans |
135 | + | local MouseButton1 = UserInputType.MouseButton1 |
136 | - | TextLabel.Text = "Rouxhavers animation player" |
136 | + | local Touch = UserInputType.Touch |
137 | - | TextLabel.TextColor3 = Color3.fromRGB(197, 197, 197) |
137 | + | |
138 | - | TextLabel.TextScaled = true |
138 | + | local InputBegan = UserInputService.InputBegan:Connect(function(Input, GameProcessed) |
139 | - | TextLabel.TextSize = 14.000 |
139 | + | local Type = Input.UserInputType |
140 | - | TextLabel.TextWrapped = true |
140 | + | |
141 | if not GameProcessed and ( Type == MouseButton1 or Type == Touch ) then | |
142 | - | Islooping = false |
142 | + | local Target = Mouse.Target |
143 | if Target and not Target.Anchored and not Target:IsDescendantOf(CharacterClone) and not Target:IsDescendantOf(Character) and not tablefind(Fling, Target) then | |
144 | - | Looped.MouseButton1Up:Connect(function() |
144 | + | local Parent = Target.Parent |
145 | - | if Islooping == false then do |
145 | + | |
146 | - | Islooping = true |
146 | + | if Parent:IsA("Model") and Parent ~= Character and Parent:FindFirstChildOfClass("Humanoid") then |
147 | - | Looped.BackgroundColor3 = Color3.fromRGB(0,255,0) |
147 | + | local HumanoidRootPart = FindInstance(Parent, "BasePart", "HumanoidRootPart") or FindInstance(Parent, "BasePart", "Torso") or FindInstance(Parent, "BasePart", "Head") |
148 | - | end else |
148 | + | |
149 | - | Islooping = false |
149 | + | if HumanoidRootPart and not tablefind(Fling, HumanoidRootPart) then |
150 | - | Looped.BackgroundColor3 = Color3.fromRGB(255,0,0) |
150 | + | tableinsert(Fling, HumanoidRootPart) |
151 | return | |
152 | end | |
153 | end | |
154 | ||
155 | - | local TweenService = game:GetService("TweenService") |
155 | + | tableinsert(Fling, Target) |
156 | end | |
157 | - | function tween(Part, Target, Time) |
157 | + | |
158 | - | local tweenInfo = TweenInfo.new(Time,Enum.EasingStyle.Linear) |
158 | + | |
159 | - | local Tween = TweenService:Create(Part, tweenInfo, { |
159 | + | |
160 | - | Transform = Target, |
160 | + | local function Part(Name, Size) |
161 | - | }) |
161 | + | local Part = Instancenew("Part") |
162 | - | Tween:Play() |
162 | + | Part.Name = Name |
163 | Part.Size = Size | |
164 | Part.Transparency = 1 | |
165 | Part.Parent = CharacterClone | |
166 | ||
167 | return Part | |
168 | end | |
169 | ||
170 | - | Playing = false |
170 | + | local function Motor6D(Name, Part0, Part1, C0, C1) |
171 | local Motor6D = Instancenew("Motor6D") | |
172 | - | Play.MouseButton1Up:Connect(function() |
172 | + | Motor6D.Name = Name |
173 | - | if Playing == false then |
173 | + | Motor6D.Part0 = Part0 |
174 | - | Play.BackgroundColor3 = Color3.fromRGB(0,255,0) |
174 | + | Motor6D.Part1 = Part1 |
175 | - | Playing = true |
175 | + | Motor6D.C0 = C0 |
176 | - | --NewChar.HumanoidRootPart.Anchored = true |
176 | + | Motor6D.C1 = C1 |
177 | Motor6D.Parent = Part0 | |
178 | - | local Frames = nil |
178 | + | |
179 | return Motor6D | |
180 | - | local obj1 = game:GetObjects("rbxassetid://"..aniid.Text) |
180 | + | |
181 | - | for i,v in pairs(obj1) do |
181 | + | |
182 | - | Frames = v:GetChildren() |
182 | + | local function Attachment(Name, CFrame, Parent) |
183 | local Attachment = Instancenew("Attachment") | |
184 | Attachment.Name = Name | |
185 | - | table.sort(Frames, function(a,b) |
185 | + | Attachment.CFrame = CFrame |
186 | - | return a.Time < b.Time |
186 | + | Attachment.Parent = Parent |
187 | ||
188 | tableinsert(Attachments, Attachment) | |
189 | - | NewChar.Animate.Disabled = true |
189 | + | return Attachment |
190 | end | |
191 | - | for i,v in pairs(NewChar.Humanoid:GetPlayingAnimationTracks()) do |
191 | + | |
192 | - | v:Stop() |
192 | + | local LimbSize = Vector3new(1, 2, 1) |
193 | local TorsoSize = Vector3new(2, 2, 1) | |
194 | ||
195 | - | while true do |
195 | + | local Head = Part("Head", Vector3new(2, 1, 1)) |
196 | - | local Last_time = 0 |
196 | + | local Torso = Part("Torso", TorsoSize) |
197 | local LeftArm = Part("Left Arm", LimbSize) | |
198 | - | for i,Frame in pairs(Frames) do |
198 | + | local RightArm = Part("Right Arm", LimbSize) |
199 | local LeftLeg = Part("Left Leg", LimbSize) | |
200 | - | local TS = Frame:FindFirstChild("Torso", true) |
200 | + | local RightLeg = Part("Right Leg", LimbSize) |
201 | - | if TS and TS.Weight == 1 then |
201 | + | local HumanoidRootPart = Part("HumanoidRootPart", TorsoSize) |
202 | - | tween(NewChar.HumanoidRootPart["RootJoint"], TS.CFrame, Frame.Time - Last_time) |
202 | + | |
203 | local FakeRA = Instance.new("Part") | |
204 | FakeRA.Size = Vector3.new(1,2,1) | |
205 | - | local LA = Frame:FindFirstChild("Left Arm", true) |
205 | + | FakeRA.Transparency = 1 |
206 | - | if LA and LA.Weight == 1 then |
206 | + | FakeRA.BrickColor = BrickColor.new("Institutional White") |
207 | - | tween(NewChar.Torso["Left Shoulder"], LA.CFrame, Frame.Time - Last_time) |
207 | + | FakeRA.Parent = RightArm |
208 | ||
209 | local FRAW = Instance.new("Weld") | |
210 | - | local RA = Frame:FindFirstChild("Right Arm", true) |
210 | + | FRAW.Part0 = RightArm |
211 | - | if RA and RA.Weight == 1 then |
211 | + | FRAW.Part1 = FakeRA |
212 | - | tween(NewChar.Torso["Right Shoulder"], RA.CFrame, Frame.Time - Last_time) |
212 | + | FRAW.C0 = CFrame.new(0, 0, 0) |
213 | FRAW.Parent = RightArm | |
214 | ||
215 | - | local RL = Frame:FindFirstChild("Right Leg", true) |
215 | + | local FakeLA = Instance.new("Part") |
216 | - | if RL and RL.Weight == 1 then |
216 | + | FakeLA.Size = Vector3.new(1,2,1) |
217 | - | tween(NewChar.Torso["Right Hip"], RL.CFrame, Frame.Time - Last_time) |
217 | + | FakeLA.Transparency = 1 |
218 | FakeLA.BrickColor = BrickColor.new("Institutional White") | |
219 | FakeLA.Parent = LeftArm | |
220 | - | local LL = Frame:FindFirstChild("Left Leg", true) |
220 | + | |
221 | - | if LL and LL.Weight == 1 then |
221 | + | local FLAW = Instance.new("Weld") |
222 | - | tween(NewChar.Torso["Left Hip"], LL.CFrame, Frame.Time - Last_time) |
222 | + | FLAW.Part0 = LeftArm |
223 | FLAW.Part1 = FakeLA | |
224 | FLAW.C0 = CFrame.new(0, 0, 0) | |
225 | - | wait(Frame.Time - Last_time) |
225 | + | FLAW.Parent = LeftArm |
226 | - | Last_time = Frame.Time |
226 | + | |
227 | local Part = nil | |
228 | - | if Islooping == false then |
228 | + | |
229 | - | break |
229 | + | if Character then |
230 | Part = FindInstance(Character, "BasePart", "HumanoidRootPart") or FindInstance(Character, "BasePart", "Head") or FindInstance(Character, "BasePart", "Torso") or FindInstance(Character, "BasePart", "UpperTorso") | |
231 | end | |
232 | ||
233 | - | NewChar.Animate.Disabled = false |
233 | + | if Part then |
234 | - | Playing = false |
234 | + | HumanoidRootPart.CFrame = Part.CFrame |
235 | - | Play.BackgroundColor3 = Color3.fromRGB(255,0,0) |
235 | + | else |
236 | local SpawnLocations = { } | |
237 | - | end) |
237 | + | |
238 | for _, SpawnLocation in pairs(Workspace:GetDescendants()) do | |
239 | if SpawnLocation:IsA("SpawnLocation") then | |
240 | tableinsert(SpawnLocations, SpawnLocation) | |
241 | end | |
242 | end | |
243 | ||
244 | local Amount = # SpawnLocations | |
245 | ||
246 | if Amount > 0 then | |
247 | local SpawnLocation = SpawnLocations[mathrandom(1, Amount)] | |
248 | HumanoidRootPart.CFrame = SpawnLocation.CFrame * CFramenew(0, SpawnLocation.Size.Y / 2 + 3, 0) | |
249 | else | |
250 | HumanoidRootPart.CFrame = CFrameidentity | |
251 | end | |
252 | end | |
253 | ||
254 | local face = Instancenew("Decal") | |
255 | face.Name = "face" | |
256 | face.Parent = Head | |
257 | ||
258 | local AccessoryTable = { | |
259 | -- Paid -- | |
260 | { Mesh = "14241018198", Texture = "14251599953", Instance = Torso }, | |
261 | { Mesh = "14255522247", Texture = "14255543546", Instance = RightArm, CFrame = CFrameAngles(0, 1.57, 1.57) }, | |
262 | { Mesh = "14255522247", Texture = "14255543546", Instance = LeftArm, CFrame = CFrameAngles(0, - 1.57, 1.57) }, | |
263 | { Mesh = "14768684979", Texture = "14768683674", Instance = RightLeg, CFrame = CFrameAngles(0, - 1.57, 1.57) }, | |
264 | { Mesh = "14768684979", Texture = "14768683674", Instance = LeftLeg, CFrame = CFrameAngles(0, 1.57, 1.57) }, | |
265 | ||
266 | -- Paid (2) -- | |
267 | { Mesh = "14241018198", Texture = "14251599953", Instance = Torso }, | |
268 | { Mesh = "12344206657", Texture = "12344206675", Instance = RightArm, CFrame = CFrameAngles(-115, 0, 0) }, | |
269 | { Mesh = "12344207333", Texture = "12344207341", Instance = LeftArm, CFrame = CFrameAngles(-115, 0, 0) }, | |
270 | { Mesh = "11159370334", Texture = "11159284657", Instance = RightLeg, CFrame = CFrameAngles(0, - 1.57, 1.57) }, | |
271 | { Mesh = "11263221350", Texture = "11263219250", Instance = LeftLeg, CFrame = CFrameAngles(0, 1.57, 1.57) }, | |
272 | ||
273 | -- Free -- | |
274 | { Mesh = "4819720316", Texture = "4819722776", Instance = Torso, CFrame = CFrameAngles(0, 0, 105) }, | |
275 | { Mesh = "3030546036", Texture = "3033903209", Instance = RightArm, CFrame = CFrameAngles(-90, 0, -89.5) }, | |
276 | { Mesh = "3030546036", Texture = "3360978739", Instance = LeftArm, CFrame = CFrameAngles(-90, 0, 89.5) }, | |
277 | { Mesh = "3030546036", Texture = "3409604993", Instance = RightLeg, CFrame = CFrameAngles(-90, 0, -89.5) }, | |
278 | { Mesh = "3030546036", Texture = "3033898741", Instance = LeftLeg, CFrame = CFrameAngles(-90, 0, 89.5) }, | |
279 | ||
280 | -- DG 40 -- | |
281 | { Mesh = "5135810417", Texture = "5135790044", Instance = FakeRA, CFrame = CFrameAngles(-0.10, -1.55, 1.45) * CFramenew(-2.55,0.35,0.15)}, | |
282 | -- Cyber Heavy Revolver -- | |
283 | { Mesh = "12830091831", Texture = "9990288940", Instance = FakeRA, CFrame = CFrameAngles(0.55, 0, 0) * CFramenew(0,-1.15,0.15)}, | |
284 | -- Beanbag Shotgun -- | |
285 | { Mesh = "14682184097", Texture = "14682167931", Instance = FakeRA, CFrame = CFrameAngles(0.05, 0, 3.15) * CFramenew(0,1.35,-0.25)}, | |
286 | -- Starslayer Railgun -- | |
287 | { Mesh = "4615369575", Texture = "4615393635", Instance = FakeRA, CFrame = CFrameAngles(-0.80, 1.55, 0) * CFramenew(1.45,-1,0)}, | |
288 | -- MARKA-17M -- | |
289 | { Mesh = "13753961447", Texture = "13760652946", Instance = FakeRA, CFrame = CFramenew(0,-1.45,-0.65) * CFrameAngles(0, -1.50, 0.75) }, | |
290 | -- Pogo Stick -- | |
291 | { Mesh = "10775011914", Texture = "10774853167", Instance = FakeRA, CFrame = CFramenew(0,-2.55,-0.65) * CFrameAngles(0, -1.55, 0.65) }, | |
292 | -- Crystal Staff -- | |
293 | { Mesh = "5548423017", Texture = "5548423938", Instance = FakeRA, CFrame = CFramenew(0,-1.65,-0) * CFrameAngles(0, -1.55, 0.60) }, | |
294 | ||
295 | } | |
296 | ||
297 | for _, Table in pairs(AccessoryTable) do | |
298 | if type(Table.Mesh) ~= "string" then | |
299 | Table.Mesh = "" | |
300 | end | |
301 | if type(Table.Texture) ~= "string" then | |
302 | Table.Texture = "" | |
303 | end | |
304 | end | |
305 | ||
306 | Motor6D("Right Shoulder", Torso, RightArm, CFramenew(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0), CFramenew(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)) | |
307 | Motor6D("Left Shoulder", Torso, LeftArm, CFramenew(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0), CFramenew(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)) | |
308 | Motor6D("Right Hip", Torso, RightLeg, CFramenew(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0), CFramenew(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)) | |
309 | Motor6D("Left Hip", Torso, LeftLeg, CFramenew(-1, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0), CFramenew(-0.5, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)) | |
310 | Motor6D("Neck", Torso, Head, CFramenew(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), CFramenew(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)) | |
311 | Motor6D("RootJoint", HumanoidRootPart, Torso, CFramenew(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0), CFramenew(0, 0, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)) | |
312 | ||
313 | Attachment("HairAttachment", CFramenew(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head) | |
314 | Attachment("HatAttachment", CFramenew(0, 0.600000024, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head) | |
315 | Attachment("FaceFrontAttachment", CFramenew(0, 0, -0.600000024, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head) | |
316 | Attachment("FaceCenterAttachment", CFramenew(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Head) | |
317 | Attachment("NeckAttachment", CFramenew(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso) | |
318 | Attachment("BodyFrontAttachment", CFramenew(0, 0, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso) | |
319 | Attachment("BodyBackAttachment", CFramenew(0, 0, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso) | |
320 | Attachment("LeftCollarAttachment", CFramenew(-1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso) | |
321 | Attachment("RightCollarAttachment", CFramenew(1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso) | |
322 | Attachment("WaistFrontAttachment", CFramenew(0, -1, -0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso) | |
323 | Attachment("WaistCenterAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso) | |
324 | Attachment("WaistBackAttachment", CFramenew(0, -1, 0.5, 1, 0, 0, 0, 1, 0, 0, 0, 1), Torso) | |
325 | Attachment("LeftShoulderAttachment", CFramenew(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), LeftArm) | |
326 | Attachment("LeftGripAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), LeftArm) | |
327 | Attachment("RightShoulderAttachment", CFramenew(0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), RightArm) | |
328 | Attachment("RightGripAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), RightArm) | |
329 | Attachment("LeftFootAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), LeftLeg) | |
330 | Attachment("RightFootAttachment", CFramenew(0, -1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), RightLeg) | |
331 | Attachment("RootAttachment", CFramenew(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), HumanoidRootPart) | |
332 | ||
333 | local Humanoid = Instancenew("Humanoid", CharacterClone) | |
334 | Instancenew("Animator", Humanoid) | |
335 | ||
336 | Instancenew("LocalScript", CharacterClone).Name = "Animate" | |
337 | ||
338 | CharacterClone.PrimaryPart = Head | |
339 | CharacterClone.Parent = Workspace | |
340 | ||
341 | local function DescendantAdded(Instance) | |
342 | if Instance:IsA("Accessory") then | |
343 | taskspawn(function() | |
344 | local Handle = WaitForClassOfName(Instance, "BasePart", "Handle") | |
345 | local Attachment = WaitForClass(Handle, "Attachment") | |
346 | ||
347 | local Clone = Instance:Clone() | |
348 | ||
349 | local CloneHandle = FindInstance(Clone, "BasePart", "Handle") | |
350 | CloneHandle.Transparency = 1 | |
351 | CloneHandle:BreakJoints() | |
352 | ||
353 | local AccessoryWeld = Instancenew("Weld") | |
354 | AccessoryWeld.Name = "AccessoryWeld" | |
355 | AccessoryWeld.Part0 = CloneHandle | |
356 | AccessoryWeld.C0 = Attachment.CFrame | |
357 | ||
358 | local Name = Attachment.Name | |
359 | ||
360 | for _, TableAttachment in pairs(Attachments) do | |
361 | if TableAttachment.Name == Name then | |
362 | AccessoryWeld.Part1 = TableAttachment.Parent | |
363 | AccessoryWeld.C1 = TableAttachment.CFrame | |
364 | end | |
365 | end | |
366 | ||
367 | AccessoryWeld.Parent = CloneHandle | |
368 | Clone.Parent = CharacterClone | |
369 | ||
370 | tableinsert(Accessories, Clone) | |
371 | ||
372 | local IsAMeshPart = CloneHandle:IsA("MeshPart") | |
373 | local Mesh = IsAMeshPart and CloneHandle or WaitForClass(CloneHandle, "SpecialMesh") | |
374 | local Id = IsAMeshPart and "TextureID" or "TextureId" | |
375 | ||
376 | for _, Table in pairs(AccessoryTable) do | |
377 | local Instance = Table.Instance | |
378 | ||
379 | if Instance then | |
380 | if stringmatch(Mesh.MeshId, Table.Mesh) and stringmatch(Mesh[Id], Table.Texture) and not tablefind(Blacklist, Instance) then | |
381 | tableinsert(Blacklist, Instance) | |
382 | tableinsert(Aligns, { Handle, Instance, Table.CFrame or CFrameidentity }) | |
383 | return | |
384 | end | |
385 | end | |
386 | end | |
387 | ||
388 | tableinsert(Aligns, { Handle, CloneHandle, CFrameidentity }) | |
389 | end) | |
390 | elseif Instance:IsA("JointInstance") then | |
391 | taskspawn(function() | |
392 | taskwait() | |
393 | Instance:Destroy() | |
394 | end) | |
395 | end | |
396 | end | |
397 | ||
398 | local function CharacterAdded(Character) | |
399 | if Character ~= CharacterClone then | |
400 | PostSimulation:Wait() | |
401 | ||
402 | local Backpack = LocalPlayer:FindFirstChildOfClass("Backpack") | |
403 | ||
404 | if Backpack then | |
405 | Backpack:ClearAllChildren() | |
406 | end | |
407 | ||
408 | tableclear(Aligns) | |
409 | tableclear(Blacklist) | |
410 | ||
411 | for _, Accessory in pairs(Accessories) do | |
412 | Accessory:Destroy() | |
413 | end | |
414 | ||
415 | local CurrentCameraCFrame = CurrentCamera.CFrame | |
416 | ||
417 | LocalPlayer.Character = CharacterClone | |
418 | CurrentCamera.CameraSubject = CharacterClone.Head | |
419 | ||
420 | taskspawn(function() | |
421 | CurrentCamera:GetPropertyChangedSignal("CFrame"):Wait() | |
422 | CurrentCamera.CFrame = CurrentCameraCFrame | |
423 | end) | |
424 | ||
425 | local CharacterHumanoidRootPart = WaitForClassOfName(Character, "BasePart", "HumanoidRootPart") | |
426 | ||
427 | for Index, Value in pairs(Fling) do | |
428 | local BasePart = nil | |
429 | ||
430 | if typeof(Value) == "Instance" then | |
431 | if Value:IsA("BasePart") then | |
432 | BasePart = Value | |
433 | elseif Value:IsA("Humanoid") then | |
434 | local Model = Value.Parent | |
435 | ||
436 | if Model ~= Character and Model:IsA("Model") then | |
437 | BasePart = FindInstance(Model, "BasePart", "HumanoidRootPart") or FindInstance(Model, "BasePart", "Head") or Model:FindFirstChildOfClass("BasePart") | |
438 | end | |
439 | elseif Value:IsA("Model") and Value ~= Character then | |
440 | BasePart = FindInstance(Value, "BasePart", "HumanoidRootPart") or FindInstance(Value, "BasePart", "Head") or Value:FindFirstChildOfClass("BasePart") | |
441 | end | |
442 | end | |
443 | ||
444 | if BasePart then | |
445 | local clock = osclock() | |
446 | ||
447 | while CharacterHumanoidRootPart and BasePart and osclock() - clock <= 1 and BasePart.AssemblyLinearVelocity.Magnitude <= 60 do | |
448 | CharacterHumanoidRootPart.AssemblyAngularVelocity = Velocity | |
449 | CharacterHumanoidRootPart.AssemblyLinearVelocity = Velocity | |
450 | ||
451 | CharacterHumanoidRootPart.CFrame = BasePart.CFrame + Vector3new(0, - 1, 0) | |
452 | PostSimulation:Wait() | |
453 | end | |
454 | end | |
455 | end | |
456 | ||
457 | tableclear(Fling) | |
458 | ||
459 | if CharacterHumanoidRootPart then | |
460 | CharacterHumanoidRootPart.AssemblyAngularVelocity = Vector3zero | |
461 | CharacterHumanoidRootPart.AssemblyLinearVelocity = Vector3zero | |
462 | ||
463 | CharacterHumanoidRootPart.CFrame = CFramenew(HumanoidRootPart.Position + Vector3new(mathrandom(- 32, 32), 0, mathrandom(- 32, 32))) | |
464 | PostSimulation:Wait() | |
465 | end | |
466 | ||
467 | Character:BreakJoints() | |
468 | ||
469 | for _, Instance in pairs(Character:GetDescendants()) do | |
470 | DescendantAdded(Instance) | |
471 | end | |
472 | ||
473 | Character.DescendantAdded:Connect(DescendantAdded) | |
474 | end | |
475 | end | |
476 | ||
477 | local function Align(Part0, Part1, CFrame) | |
478 | if Part0.ReceiveAge == 0 and not Part0.Anchored and # Part0:GetJoints() == 0 then | |
479 | Part0.AssemblyAngularVelocity = Vector3new(0, Angular, 0) | |
480 | ||
481 | local Part1CFrame = Part1.CFrame | |
482 | local LinearVelocity = Part1.AssemblyLinearVelocity * Linear | |
483 | local Magnitude = LinearVelocity.Magnitude < Linear | |
484 | ||
485 | if Magnitude then | |
486 | local LookVector = Part1CFrame.LookVector * Linear | |
487 | Part0.AssemblyLinearVelocity = Vector3new(LookVector.X, Linear, LookVector.Z) | |
488 | else | |
489 | Part0.AssemblyLinearVelocity = Vector3new(LinearVelocity.X, Linear, LinearVelocity.Z) | |
490 | end | |
491 | ||
492 | Part0.CFrame = Part1CFrame * ( Magnitude and Sleep or CFrameidentity ) * CFrame | |
493 | end | |
494 | end | |
495 | ||
496 | if Character then | |
497 | CharacterAdded(Character) | |
498 | end | |
499 | ||
500 | local Added = LocalPlayer.CharacterAdded:Connect(CharacterAdded) | |
501 | ||
502 | local Connection = game:FindFirstChildOfClass("RunService").PostSimulation:Connect(function() | |
503 | local osclock = osclock() | |
504 | local Axis = 0.004 * mathcos(osclock * 17.5) | |
505 | ||
506 | Sleep = CFramenew(0, Axis, 0) | |
507 | Angular = mathcos(osclock) | |
508 | Linear = 26 | |
509 | ||
510 | for _, Table in pairs(Aligns) do | |
511 | Align(Table[1], Table[2], Table[3]) | |
512 | end | |
513 | ||
514 | if sethiddenproperty then | |
515 | sethiddenproperty(LocalPlayer, "SimulationRadius", 10000000) | |
516 | end | |
517 | ||
518 | StarterGui:SetCore("ResetButtonCallback", BindableEvent) -- This is if it gets overriden, just like in MyWorld testing place. | |
519 | end) | |
520 | ||
521 | local function Event() | |
522 | CharacterClone:Destroy() | |
523 | end | |
524 | ||
525 | BindableEvent.Event:Connect(Event) | |
526 | ||
527 | CharacterClone:GetPropertyChangedSignal("Parent"):Connect(function() | |
528 | if not CharacterClone.Parent then | |
529 | Added:Disconnect() | |
530 | Connection:Disconnect() | |
531 | ||
532 | CharacterClone:Destroy() | |
533 | ||
534 | if BindableEvent then | |
535 | BindableEvent:Destroy() | |
536 | end | |
537 | ||
538 | StarterGui:SetCore("ResetButtonCallback", true) | |
539 | end | |
540 | end) | |
541 | ||
542 | BindableEvent:GetPropertyChangedSignal("Parent"):Connect(Event) | |
543 | if not getgenv()["Animator"] then | |
544 | loadstring(game:HttpGet("https://raw.githubusercontent.com/xhayper/Animator/main/Source/Main.lua"))() | |
545 | end | |
546 | ||
547 | -- Main -- | |
548 | local Players = game:GetService("Players") | |
549 | local Player = Players.LocalPlayer | |
550 | ||
551 | local currentAnim | |
552 | ||
553 | -- UI -- | |
554 | ||
555 | local Material = HttpRequire("https://raw.githubusercontent.com/Kinlei/MaterialLua/master/Module.lua") | |
556 | ||
557 | local UI = Material.Load({ | |
558 | Title = "Animator", | |
559 | Style = 3, | |
560 | SizeX = 200, | |
561 | SizeY = 230, | |
562 | Theme = "Dark" | |
563 | }) | |
564 | ||
565 | -- MAIN -- | |
566 | ||
567 | local Main = UI.New({ | |
568 | Title = "Animator" | |
569 | }) | |
570 | ||
571 | local Animation = Main.TextField({ | |
572 | Text = "Animation" | |
573 | }) | |
574 | ||
575 | local Loop = Main.Toggle({ | |
576 | Text = "Loop", | |
577 | Enabled = true | |
578 | }) | |
579 | ||
580 | local Play = Main.Button({ | |
581 | Text = "Play", | |
582 | Callback = function() | |
583 | if currentAnim ~= nil and currentAnim.IsPlaying == true then | |
584 | currentAnim:Stop(0) | |
585 | currentAnim.Stopped:Wait() | |
586 | task.wait() | |
587 | end | |
588 | currentAnim = Animator.new(Player.Character or Player.CharacterAdded:Wait(), Animation:GetText()) | |
589 | if getgenv()["NullwareAPI"] then -- Nullware Complatible | |
590 | currentAnim:IgnoreMotorIn(NullwareAPI:GetCharacter("MainChar")) | |
591 | currentAnim:IgnoreBoneIn(NullwareAPI:GetCharacter("MainChar")) | |
592 | end | |
593 | currentAnim.Looped = Loop:GetState() | |
594 | currentAnim:Play() | |
595 | task.spawn(function() | |
596 | currentAnim.Stopped:Wait() | |
597 | currentAnim:Destroy() | |
598 | end) | |
599 | end | |
600 | }) | |
601 | ||
602 | local Stop = Main.Button({ | |
603 | Text = "Stop", | |
604 | Callback = function() | |
605 | if currentAnim and currentAnim.IsPlaying then | |
606 | currentAnim:Stop() | |
607 | end | |
608 | end | |
609 | }) | |
610 | ||
611 | -- REANIMATE -- | |
612 | ||
613 | local Nullware = UI.New({ | |
614 | Title = "Nullware" | |
615 | }) | |
616 | ||
617 | local NullwareLink = Nullware.TextField({ | |
618 | Text = "Nullware Reanimate Link", | |
619 | Type = "Password" | |
620 | }) | |
621 | ||
622 | local ReanimateConfiguration = Nullware.ChipSet({ | |
623 | Text = "ReanimateConfiguration", | |
624 | Options = { | |
625 | ["Anti-Fling"] = true, | |
626 | ["Head Movement Without Godmode"] = true, | |
627 | ["Enable Limb Collisions"] = true, | |
628 | ["Disable Torso Collisions"] = false, | |
629 | ["R15 To R6"] = true, | |
630 | ["Godmode"] = false | |
631 | } | |
632 | }) | |
633 | ||
634 | Nullware.Button({ | |
635 | Text = "Reanimate", | |
636 | Callback = function() | |
637 | if not getgenv()["NullwareAPI"] then | |
638 | local options = ReanimateConfiguration:GetOptions() | |
639 | options["Hats To Align"] = {"All"} | |
640 | options["Netless"] = true | |
641 | getgenv().Nullware_ReanimateConfiguration = options | |
642 | HttpRequire(NullwareLink:GetText()) | |
643 | end | |
644 | end | |
645 | }) |