SHOW:
|
|
- or go back to the newest paste.
1 | function createFakeCharacter(DisplayName) | |
2 | - | local coms = {Instance.new("RemoteEvent",script),Instance.new("RemoteFunction",script)} |
2 | + | |
3 | local Part1 = Instance.new("Part") --Head | |
4 | local SpecialMesh2 = Instance.new("SpecialMesh") | |
5 | local Part3 = Instance.new("Part") --Torso | |
6 | local Part4 = Instance.new("Part") | |
7 | local Part5 = Instance.new("Part") | |
8 | local Part6 = Instance.new("Part") | |
9 | - | local Part1 = Instance.new("Part") |
9 | + | |
10 | local Part8 = Instance.new("Part") | |
11 | - | local Part3 = Instance.new("Part") |
11 | + | local CharacterMesh9 = Instance.new("CharacterMesh") |
12 | local Pants10 = Instance.new("Pants") | |
13 | local Shirt11 = Instance.new("Shirt") | |
14 | local Humanoid12 = Instance.new("Humanoid") | |
15 | local Folder13 = Instance.new("Folder") | |
16 | - | local Humanoid8 = Instance.new("Humanoid") |
16 | + | local Folder14 = Instance.new("Folder") |
17 | - | local Part9 = Instance.new("Part") |
17 | + | local Part15 = Instance.new("Part") |
18 | - | local CharacterMesh10 = Instance.new("CharacterMesh") |
18 | + | local SpecialMesh16 = Instance.new("SpecialMesh") |
19 | local AlignPosition17 = Instance.new("AlignPosition") | |
20 | - | local Pants12 = Instance.new("Pants") |
20 | + | local AlignOrientation18 = Instance.new("AlignOrientation") |
21 | - | local Part13 = Instance.new("Part") |
21 | + | local Part19 = Instance.new("Part") |
22 | - | local SpecialMesh14 = Instance.new("SpecialMesh") |
22 | + | local SpecialMesh20 = Instance.new("SpecialMesh") |
23 | - | local AlignOrientation15 = Instance.new("AlignOrientation") |
23 | + | local AlignPosition21 = Instance.new("AlignPosition") |
24 | - | local AlignPosition16 = Instance.new("AlignPosition") |
24 | + | local AlignOrientation22 = Instance.new("AlignOrientation") |
25 | - | local Part17 = Instance.new("Part") |
25 | + | local Part23 = Instance.new("Part") |
26 | - | local SpecialMesh18 = Instance.new("SpecialMesh") |
26 | + | local SpecialMesh24 = Instance.new("SpecialMesh") |
27 | - | local AlignOrientation19 = Instance.new("AlignOrientation") |
27 | + | local AlignPosition25 = Instance.new("AlignPosition") |
28 | - | local AlignPosition20 = Instance.new("AlignPosition") |
28 | + | local AlignOrientation26 = Instance.new("AlignOrientation") |
29 | - | local Attachment21 = Instance.new("Attachment") |
29 | + | local Folder27 = Instance.new("Folder") |
30 | - | local Attachment22 = Instance.new("Attachment") |
30 | + | local Part28 = Instance.new("Part") --CatTails |
31 | - | local Attachment23 = Instance.new("Attachment") |
31 | + | local SpecialMesh29 = Instance.new("SpecialMesh") |
32 | local AlignOrientation30 = Instance.new("AlignOrientation") | |
33 | - | Attachment21.Name = "Head" |
33 | + | local AlignPosition31 = Instance.new("AlignPosition") |
34 | - | Attachment22.Name = "Hair" |
34 | + | |
35 | - | Attachment23.Name = "Mask" |
35 | + | local Attachment32 = Instance.new("Attachment") --Head |
36 | - | Attachment21.Parent = Part1 |
36 | + | local Attachment33 = Instance.new("Attachment") --Hair |
37 | - | Attachment22.Parent = Part17 |
37 | + | local Attachment34 = Instance.new("Attachment") --Mask |
38 | - | Attachment23.Parent = Part13 |
38 | + | local Attachment35 = Instance.new("Attachment") --CatEars |
39 | ||
40 | - | Model0.Name = "Ghost" |
40 | + | local Attachment36 = Instance.new("Attachment") --Torso |
41 | - | Model0.PrimaryPart = Part9 |
41 | + | local Attachment37 = Instance.new("Attachment") --CatTails |
42 | ||
43 | Attachment32.Parent = Part1 | |
44 | - | Part1.CFrame = CFrame.new(-51.5, 4.5, -53, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
44 | + | Attachment33.Parent = Part23 |
45 | - | Part1.Position = Vector3.new(-51.5, 4.5, -53) |
45 | + | Attachment34.Parent = Part15 |
46 | Attachment35.Parent = Part19 | |
47 | ||
48 | Attachment36.Parent = Part3 | |
49 | Attachment37.Parent = Part28 | |
50 | ||
51 | Part23.CFrame = Part1.CFrame | |
52 | Part15.CFrame = Part1.CFrame | |
53 | Part19.CFrame = Part1.CFrame | |
54 | Part28.CFrame = Part3.CFrame | |
55 | ||
56 | Part23.Velocity = Vector3.new(0, 0, 0) | |
57 | Part15.Velocity = Vector3.new(0, 0, 0) | |
58 | - | Part3.CFrame = CFrame.new(-51.5, 3, -53, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
58 | + | Part19.Velocity = Vector3.new(0, 0, 0) |
59 | - | Part3.Position = Vector3.new(-51.5, 3, -53) |
59 | + | Part28.Velocity = Vector3.new(0, 0, 0) |
60 | ||
61 | AlignPosition17.Parent = Part15 | |
62 | AlignPosition17.Attachment0 = Attachment34 | |
63 | AlignPosition17.Attachment1 = Attachment32 | |
64 | AlignPosition17.RigidityEnabled = true | |
65 | ||
66 | AlignOrientation18.Parent = Part15 | |
67 | AlignOrientation18.Attachment0 = Attachment34 | |
68 | AlignOrientation18.Attachment1 = Attachment32 | |
69 | AlignOrientation18.RigidityEnabled = true | |
70 | ||
71 | AlignPosition21.Parent = Part19 | |
72 | AlignPosition21.Attachment0 = Attachment35 | |
73 | AlignPosition21.Attachment1 = Attachment32 | |
74 | AlignPosition21.RigidityEnabled = true | |
75 | - | Part4.CFrame = CFrame.new(-53, 3, -53, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
75 | + | |
76 | - | Part4.Position = Vector3.new(-53, 3, -53) |
76 | + | AlignOrientation22.Parent = Part19 |
77 | AlignOrientation22.Attachment0 = Attachment35 | |
78 | AlignOrientation22.Attachment1 = Attachment32 | |
79 | AlignOrientation22.RigidityEnabled = true | |
80 | - | Part4.CanCollide = false |
80 | + | |
81 | AlignPosition25.Parent = Part23 | |
82 | AlignPosition25.Attachment0 = Attachment33 | |
83 | AlignPosition25.Attachment1 = Attachment32 | |
84 | AlignPosition25.RigidityEnabled = true | |
85 | ||
86 | AlignOrientation26.Parent = Part23 | |
87 | - | Part5.CFrame = CFrame.new(-50, 3, -53, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
87 | + | AlignOrientation26.Attachment0 = Attachment33 |
88 | - | Part5.Position = Vector3.new(-50, 3, -53) |
88 | + | AlignOrientation26.Attachment1 = Attachment32 |
89 | AlignOrientation26.RigidityEnabled = true | |
90 | ||
91 | AlignOrientation30.Parent = Part28 | |
92 | - | Part5.CanCollide = false |
92 | + | AlignOrientation30.Attachment0 = Attachment37 |
93 | AlignOrientation30.Attachment1 = Attachment36 | |
94 | AlignOrientation30.RigidityEnabled = true | |
95 | ||
96 | AlignPosition31.Parent = Part28 | |
97 | AlignPosition31.Attachment0 = Attachment37 | |
98 | AlignPosition31.Attachment1 = Attachment36 | |
99 | - | Part6.CFrame = CFrame.new(-52, 1, -53, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
99 | + | AlignPosition31.RigidityEnabled = true |
100 | - | Part6.Position = Vector3.new(-52, 1, -53) |
100 | + | |
101 | Model0.Name = "Kuroneko" | |
102 | Model0.PrimaryPart = Part8 | |
103 | Part1.Name = "Head" | |
104 | Part1.Parent = Model0 | |
105 | - | Part6.CanCollide = false |
105 | + | Part1.CFrame = CFrame.new(188.376953, 4.5, -73.9752808, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
106 | Part1.Position = Vector3.new(188.376953125, 4.5, -73.975280761719) | |
107 | Part1.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
108 | Part1.Size = Vector3.new(2, 1, 1) | |
109 | Part1.BrickColor = BrickColor.new("Institutional white") | |
110 | Part1.Material = Enum.Material.Sand | |
111 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
112 | - | Part7.CFrame = CFrame.new(-51, 1, -53, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
112 | + | |
113 | - | Part7.Position = Vector3.new(-51, 1, -53) |
113 | + | |
114 | Part1.formFactor = Enum.FormFactor.Symmetric | |
115 | SpecialMesh2.Parent = Part1 | |
116 | SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25) | |
117 | Part3.Name = "Torso" | |
118 | - | Part7.CanCollide = false |
118 | + | |
119 | Part3.CFrame = CFrame.new(188.376953, 3, -73.9752808, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
120 | Part3.Position = Vector3.new(188.376953125, 3, -73.975280761719) | |
121 | Part3.Color = Color3.new(0.972549, 0.972549, 0.972549) | |
122 | Part3.Size = Vector3.new(2, 2, 1) | |
123 | - | Humanoid8.Parent = Model0 |
123 | + | |
124 | - | Humanoid8.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None |
124 | + | |
125 | - | Humanoid8.HealthDisplayDistance = 0 |
125 | + | |
126 | - | Humanoid8.HealthDisplayType = Enum.HumanoidHealthDisplayType.AlwaysOff |
126 | + | |
127 | - | Humanoid8.LeftLeg = Part6 |
127 | + | |
128 | - | Humanoid8.NameDisplayDistance = 0 |
128 | + | |
129 | - | Humanoid8.RightLeg = Part7 |
129 | + | |
130 | - | Humanoid8.Torso = Part9 |
130 | + | |
131 | - | Part9.Name = "HumanoidRootPart" |
131 | + | |
132 | - | Part9.Parent = Model0 |
132 | + | |
133 | - | Part9.CFrame = CFrame.new(-51.5, 3, -53, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
133 | + | |
134 | - | Part9.Position = Vector3.new(-51.5, 3, -53) |
134 | + | |
135 | - | Part9.Transparency = 1 |
135 | + | |
136 | - | Part9.Size = Vector3.new(2, 2, 1) |
136 | + | Part4.CFrame = CFrame.new(186.876953, 3, -73.9752808, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
137 | - | Part9.Anchored = false |
137 | + | Part4.Position = Vector3.new(186.876953125, 3, -73.975280761719) |
138 | - | Part9.BottomSurface = Enum.SurfaceType.Smooth |
138 | + | |
139 | - | Part9.CanCollide = false |
139 | + | |
140 | - | Part9.LeftParamA = 0 |
140 | + | |
141 | - | Part9.LeftParamB = 0 |
141 | + | |
142 | - | Part9.Material = Enum.Material.Sand |
142 | + | |
143 | - | Part9.RightParamA = 0 |
143 | + | |
144 | - | Part9.RightParamB = 0 |
144 | + | |
145 | - | Part9.TopSurface = Enum.SurfaceType.Smooth |
145 | + | |
146 | - | Part9.FormFactor = Enum.FormFactor.Symmetric |
146 | + | |
147 | - | Part9.formFactor = Enum.FormFactor.Symmetric |
147 | + | Part5.CFrame = CFrame.new(189.876953, 3, -73.9752808, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
148 | - | CharacterMesh10.Parent = Model0 |
148 | + | Part5.Position = Vector3.new(189.876953125, 3, -73.975280761719) |
149 | - | CharacterMesh10.BodyPart = Enum.BodyPart.Torso |
149 | + | |
150 | - | CharacterMesh10.MeshId = "rbxassetid://48112070" |
150 | + | |
151 | Part5.BrickColor = BrickColor.new("Institutional white") | |
152 | Part5.Material = Enum.Material.Sand | |
153 | Part5.brickColor = BrickColor.new("Institutional white") | |
154 | - | Pants12.Name = "Pants" |
154 | + | |
155 | - | Pants12.Parent = Model0 |
155 | + | |
156 | - | Pants12.PantsTemplate = "http://www.roblox.com/asset/?id=1210858273" |
156 | + | |
157 | - | Part13.Name = "Mask" |
157 | + | |
158 | - | Part13.Parent = Model0 |
158 | + | Part6.CFrame = CFrame.new(187.876953, 1, -73.9752808, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
159 | - | Part13.CFrame = CFrame.new(-51.5017433, 4.50454998, -53.0024185, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
159 | + | Part6.Position = Vector3.new(187.876953125, 1, -73.975280761719) |
160 | - | Part13.Position = Vector3.new(-51.50174331665, 4.5045499801636, -53.002418518066) |
160 | + | |
161 | - | Part13.Size = Vector3.new(2, 1, 1) |
161 | + | |
162 | - | Part13.BottomSurface = Enum.SurfaceType.Smooth |
162 | + | |
163 | - | Part13.CanCollide = false |
163 | + | |
164 | - | Part13.Material = Enum.Material.Sand |
164 | + | |
165 | - | Part13.TopSurface = Enum.SurfaceType.Smooth |
165 | + | |
166 | - | SpecialMesh14.Name = "SpecialMesh" |
166 | + | |
167 | - | SpecialMesh14.Parent = Part13 |
167 | + | |
168 | - | SpecialMesh14.MeshId = "rbxassetid://5728632913" |
168 | + | |
169 | - | SpecialMesh14.TextureId = "http://www.roblox.com/asset/?id=4809181158" |
169 | + | |
170 | - | SpecialMesh14.MeshType = Enum.MeshType.FileMesh |
170 | + | Part7.CFrame = CFrame.new(188.876953, 1, -73.9752808, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
171 | - | AlignOrientation15.Parent = Part13 |
171 | + | Part7.Position = Vector3.new(188.876953125, 1, -73.975280761719) |
172 | - | AlignOrientation15.Attachment0 = Attachment22 |
172 | + | |
173 | - | AlignOrientation15.Attachment1 = Attachment21 |
173 | + | |
174 | - | AlignOrientation15.RigidityEnabled = true |
174 | + | |
175 | - | AlignPosition16.Parent = Part13 |
175 | + | |
176 | - | AlignPosition16.Attachment0 = Attachment22 |
176 | + | |
177 | - | AlignPosition16.Attachment1 = Attachment21 |
177 | + | |
178 | - | AlignPosition16.RigidityEnabled = true |
178 | + | |
179 | - | Part17.Name = "Hair" |
179 | + | |
180 | - | Part17.Parent = Model0 |
180 | + | Part8.Name = "HumanoidRootPart" |
181 | - | Part17.CFrame = CFrame.new(-51.5, 4.5, -53, 1, 9.8568377e-15, -8.08289872e-16, -9.82961152e-15, 0.999588966, 0.0286718253, 1.09057112e-15, -0.0286718253, 0.999588966) |
181 | + | Part8.Parent = Model0 |
182 | - | Part17.Orientation = Vector3.new(-1.6399999856949, 0, 0) |
182 | + | Part8.CFrame = CFrame.new(188.376953, 3, -73.9752808, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
183 | - | Part17.Position = Vector3.new(-51.5, 4.5, -53) |
183 | + | Part8.Position = Vector3.new(188.376953125, 3, -73.975280761719) |
184 | - | Part17.Rotation = Vector3.new(-1.6399999856949, 0, 0) |
184 | + | Part8.Color = Color3.new(0.972549, 0.972549, 0.972549) |
185 | - | Part17.Size = Vector3.new(2, 1, 1) |
185 | + | Part8.Transparency = 1 |
186 | - | Part17.BottomSurface = Enum.SurfaceType.Smooth |
186 | + | Part8.Size = Vector3.new(2, 2, 1) |
187 | - | Part17.CanCollide = false |
187 | + | Part8.BottomSurface = Enum.SurfaceType.Smooth |
188 | - | Part17.Material = Enum.Material.Sand |
188 | + | Part8.BrickColor = BrickColor.new("Institutional white") |
189 | - | Part17.TopSurface = Enum.SurfaceType.Smooth |
189 | + | Part8.LeftParamA = 0 |
190 | - | SpecialMesh18.Name = "SpecialMesh" |
190 | + | Part8.LeftParamB = 0 |
191 | - | SpecialMesh18.Parent = Part17 |
191 | + | Part8.Material = Enum.Material.Sand |
192 | - | SpecialMesh18.MeshId = "rbxassetid://6521980205" |
192 | + | Part8.RightParamA = 0 |
193 | - | SpecialMesh18.Offset = Vector3.new(0, -0.80000001192093, 0.20000000298023) |
193 | + | Part8.RightParamB = 0 |
194 | - | SpecialMesh18.Scale = Vector3.new(0.94999998807907, 0.95999997854233, 0.91000002622604) |
194 | + | Part8.TopSurface = Enum.SurfaceType.Smooth |
195 | - | SpecialMesh18.TextureId = "http://www.roblox.com/asset/?id=6517665515" |
195 | + | Part8.brickColor = BrickColor.new("Institutional white") |
196 | - | SpecialMesh18.MeshType = Enum.MeshType.FileMesh |
196 | + | Part8.FormFactor = Enum.FormFactor.Symmetric |
197 | - | AlignOrientation19.Parent = Part17 |
197 | + | Part8.formFactor = Enum.FormFactor.Symmetric |
198 | - | AlignOrientation19.Attachment0 = Attachment23 |
198 | + | CharacterMesh9.Parent = Model0 |
199 | - | AlignOrientation19.Attachment1 = Attachment21 |
199 | + | CharacterMesh9.BodyPart = Enum.BodyPart.Torso |
200 | - | AlignOrientation19.RigidityEnabled = true |
200 | + | CharacterMesh9.MeshId = 48112070 |
201 | - | AlignPosition20.Parent = Part17 |
201 | + | Pants10.Name = "Pants" |
202 | - | AlignPosition20.Attachment0 = Attachment23 |
202 | + | Pants10.Parent = Model0 |
203 | - | AlignPosition20.Attachment1 = Attachment21 |
203 | + | Pants10.PantsTemplate = "http://www.roblox.com/asset/?id=1210858273" |
204 | - | AlignPosition20.RigidityEnabled = true |
204 | + | |
205 | Shirt11.Parent = Model0 | |
206 | Shirt11.ShirtTemplate = "http://www.roblox.com/asset/?id=1210857659" | |
207 | Humanoid12.Parent = Model0 | |
208 | Humanoid12.HealthDisplayDistance = 0 | |
209 | Humanoid12.HealthDisplayType = Enum.HumanoidHealthDisplayType.AlwaysOff | |
210 | Humanoid12.LeftLeg = Part6 | |
211 | Humanoid12.RightLeg = Part7 | |
212 | Humanoid12.Torso = Part8 | |
213 | Humanoid12.DisplayName = DisplayName | |
214 | Folder13.Name = "Accessories" | |
215 | Folder13.Parent = Model0 | |
216 | Folder14.Name = "Head" | |
217 | Folder14.Parent = Folder13 | |
218 | Part15.Name = "Mask_Accessory" | |
219 | Part15.Parent = Folder14 | |
220 | Part15.CFrame = CFrame.new(188.375214, 4.50454998, -73.9776993, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
221 | Part15.Position = Vector3.new(188.37521362305, 4.5045499801636, -73.977699279785) | |
222 | Part15.Size = Vector3.new(1, 1, 1) | |
223 | Part15.BottomSurface = Enum.SurfaceType.Smooth | |
224 | Part15.CanCollide = false | |
225 | Part15.Material = Enum.Material.Sand | |
226 | Part15.TopSurface = Enum.SurfaceType.Smooth | |
227 | SpecialMesh16.Name = "SpecialMesh" | |
228 | SpecialMesh16.Parent = Part15 | |
229 | SpecialMesh16.MeshId = "rbxassetid://5728632913" | |
230 | SpecialMesh16.TextureId = "http://www.roblox.com/asset/?id=4809181158" | |
231 | SpecialMesh16.MeshType = Enum.MeshType.FileMesh | |
232 | Part19.Name = "CatEars_Accessory" | |
233 | Part19.Parent = Folder14 | |
234 | Part19.CFrame = CFrame.new(188.376907, 5.1873703, -73.9569092, 1, -3.29228338e-25, 0, 3.29228338e-25, 1, 0, 0, 0, 1) | |
235 | Part19.Position = Vector3.new(188.37690734863, 5.187370300293, -73.956909179688) | |
236 | Part19.Size = Vector3.new(1.529000043869, 0.90399998426437, 0.50400000810623) | |
237 | Part19.BottomSurface = Enum.SurfaceType.Smooth | |
238 | Part19.CanCollide = false | |
239 | Part19.Material = Enum.Material.Sand | |
240 | Part19.TopSurface = Enum.SurfaceType.Smooth | |
241 | SpecialMesh20.Name = "SpecialMesh" | |
242 | SpecialMesh20.Parent = Part19 | |
243 | SpecialMesh20.MeshId = "rbxassetid://6884739486" | |
244 | SpecialMesh20.Offset = Vector3.new(0, 0.5, 0) | |
245 | SpecialMesh20.TextureId = "http://www.roblox.com/asset/?id=6884796464" | |
246 | SpecialMesh20.MeshType = Enum.MeshType.FileMesh | |
247 | Part23.Name = "CaliforniaGirlHair_Accessory" | |
248 | Part23.Parent = Folder14 | |
249 | Part23.CFrame = CFrame.new(188.376953, 3.79517221, -73.6959991, 1, 9.8568377e-15, -8.08289872e-16, -9.82961152e-15, 0.999588966, 0.0286718253, 1.09057112e-15, -0.0286718253, 0.999588966) | |
250 | Part23.Orientation = Vector3.new(-1.6399999856949, 0, 0) | |
251 | Part23.Position = Vector3.new(188.376953125, 3.7951722145081, -73.695999145508) | |
252 | Part23.Rotation = Vector3.new(-1.6399999856949, 0, 0) | |
253 | Part23.Size = Vector3.new(1, 1, 1) | |
254 | Part23.BottomSurface = Enum.SurfaceType.Smooth | |
255 | Part23.CanCollide = false | |
256 | Part23.Material = Enum.Material.Sand | |
257 | Part23.TopSurface = Enum.SurfaceType.Smooth | |
258 | SpecialMesh24.Name = "SpecialMesh" | |
259 | SpecialMesh24.Parent = Part23 | |
260 | SpecialMesh24.MeshId = "rbxassetid://6521980205" | |
261 | SpecialMesh24.Scale = Vector3.new(0.94999998807907, 0.95999997854233, 0.91000002622604) | |
262 | SpecialMesh24.Offset = Vector3.new(0, -0.75, 0.3) | |
263 | SpecialMesh24.TextureId = "http://www.roblox.com/asset/?id=6517665515" | |
264 | SpecialMesh24.MeshType = Enum.MeshType.FileMesh | |
265 | Folder27.Name = "Torso" | |
266 | Folder27.Parent = Folder13 | |
267 | Part28.Name = "CatTail_Accessory" | |
268 | Part28.Parent = Folder27 | |
269 | Part28.CFrame = CFrame.new(188.376938, 1.52037835, -71.9532471, 1, -3.29228338e-25, 0, 3.29228338e-25, 1, 0, 0, 0, 1) | |
270 | Part28.Position = Vector3.new(188.37693786621, 1.5203783512115, -71.953247070313) | |
271 | Part28.Size = Vector3.new(0.78100001811981, 1.8250000476837, 3.4089999198914) | |
272 | Part28.BottomSurface = Enum.SurfaceType.Smooth | |
273 | Part28.CanCollide = false | |
274 | Part28.Material = Enum.Material.Sand | |
275 | Part28.TopSurface = Enum.SurfaceType.Smooth | |
276 | SpecialMesh29.Name = "SpecialMesh" | |
277 | SpecialMesh29.Parent = Part28 | |
278 | SpecialMesh29.Offset = Vector3.new(0, -1.35, 2) | |
279 | SpecialMesh29.MeshId = "rbxassetid://6891780223" | |
280 | SpecialMesh29.TextureId = "http://www.roblox.com/asset/?id=6884796339" | |
281 | SpecialMesh29.MeshType = Enum.MeshType.FileMesh | |
282 | ||
283 | return Model0 | |
284 | end | |
285 | ||
286 | repeat wait() until #game:GetService("Players"):GetPlayers() > 0 | |
287 | local coms = {Instance.new("RemoteEvent",script),Instance.new("RemoteFunction",script),Instance.new("RemoteFunction",script)} | |
288 | local owner = owner or game:GetService("Players"):WaitForChild("plytalent") | |
289 | local FF = Instance.new("ForceField",owner.Character) | |
290 | local waitremote = Instance.new('RemoteEvent',script) | |
291 | ||
292 | local mainchar = createFakeCharacter(owner.DisplayName) | |
293 | local conchar = mainchar:Clone() | |
294 | ||
295 | FF.Visible = false | |
296 | local subevents={} | |
297 | local comsfuncs={ | |
298 | function(plr, partname, partposition, partsize, partorientation) | |
299 | if plr ~= owner then | |
300 | return | |
301 | end | |
302 | if owner.Character.Parent then | |
303 | owner.Character.Parent = nil | |
304 | end | |
305 | if not conchar then | |
306 | conchar = mainchar:Clone() | |
307 | conchar.Parent = workspace | |
308 | return | |
309 | end | |
310 | if not conchar.Parent then | |
311 | conchar=nil | |
312 | return | |
313 | end | |
314 | if FF.Parent ~= owner.Character then | |
315 | FF = Instance.new("ForceField",owner.Character) | |
316 | FF.Visible = false | |
317 | end | |
318 | conchar.Name = "Ghost" | |
319 | local part = conchar:FindFirstChild(partname) | |
320 | if not part then | |
321 | conchar:Destroy() | |
322 | conchar = nil | |
323 | return | |
324 | end | |
325 | for _,p in pairs(conchar:GetDescendants())do | |
326 | if p:IsA("BasePart") then | |
327 | if p:GetNetworkOwner() ~= owner then | |
328 | p:SetNetworkOwner(owner) | |
329 | end | |
330 | if p.Name:find("_Accessory") then | |
331 | p.Size = mainchar:FindFirstChild(p.Name,true).Size | |
332 | end | |
333 | end | |
334 | end | |
335 | if part then | |
336 | if not subevents[part] then | |
337 | subevents[part] = part.Changed:Connect(function(property) | |
338 | if property == "Size" then | |
339 | local mainpart = mainchar:FindFirstChild(part.Name,true) | |
340 | if mainpart then | |
341 | part.Size = mainpart.Size | |
342 | end | |
343 | end | |
344 | end) | |
345 | end | |
346 | if not part:FindFirstChild("PartAlignPos") then | |
347 | part.Position = partposition | |
348 | local AlignPosition = Instance.new("AlignPosition",part) | |
349 | local AlignOrientation = Instance.new("AlignOrientation",part) | |
350 | AlignPosition.Name = "PartAlignPos" | |
351 | AlignOrientation.Name = "PartAlignOri" | |
352 | local attachment0 = Instance.new("Attachment",part) | |
353 | local attachment1 = Instance.new("Attachment",part) | |
354 | attachment1.Name = "attachment1" | |
355 | AlignOrientation.RigidityEnabled = true | |
356 | AlignPosition.RigidityEnabled = true | |
357 | AlignOrientation.Attachment0 = attachment0 | |
358 | AlignOrientation.Attachment1 = attachment1 | |
359 | AlignPosition.Attachment0 = attachment0 | |
360 | AlignPosition.Attachment1 = attachment1 | |
361 | end | |
362 | if partname == "HumanoidRootPart" then | |
363 | part.Transparency = 1 | |
364 | else | |
365 | part.Transparency = 0.5 | |
366 | end | |
367 | part.Name = partname | |
368 | if part:GetNetworkOwner() ~= owner then | |
369 | part:SetNetworkOwner(owner) | |
370 | end | |
371 | end | |
372 | end, | |
373 | function(plr) | |
374 | if plr ~= owner then | |
375 | return | |
376 | end | |
377 | return conchar | |
378 | end | |
379 | } | |
380 | coms[1].Name = "Com1" | |
381 | coms[2].Name = "Com2" | |
382 | coms[2].Name = "Com3" | |
383 | waitremote.Name = "WaitRemote" | |
384 | ||
385 | coms[2].OnServerInvoke = comsfuncs[2] | |
386 | coms[1].OnServerEvent:Connect(comsfuncs[1]) | |
387 | ||
388 | NLS([==[ | |
389 | local remote=script.Parent.Com1 | |
390 | local com1 = script.Parent.Com2 | |
391 | local com3 = script.Parent.Com3 | |
392 | local owner = owner or game:GetService("Players").LocalPlayer | |
393 | game:GetService("RunService").RenderStepped:Connect(function() | |
394 | if owner.Character.Parent ~= workspace then | |
395 | owner.Character.Parent = workspace | |
396 | end | |
397 | end) | |
398 | local parttable={} | |
399 | local FF | |
400 | com3.OnClientInvoke = function(part) | |
401 | if character:FindFirstChild(part) then | |
402 | return character[part].Position | |
403 | end | |
404 | end | |
405 | game:GetService("RunService").Stepped:Connect(function() | |
406 | if not FF then | |
407 | FF = Instance.new("ForceField") | |
408 | end | |
409 | if not FF.Parent then | |
410 | FF = nil | |
411 | end | |
412 | if FF then | |
413 | FF.Visible = false | |
414 | end | |
415 | for _, part in pairs(owner.Character:GetChildren()) do | |
416 | coroutine.resume(coroutine.create(function() | |
417 | local part = part | |
418 | if part:IsA("BasePart") then | |
419 | remote:FireServer(part.Name, part.Position, part.Size, part.Orientation) | |
420 | end | |
421 | end)) | |
422 | end | |
423 | end) | |
424 | ||
425 | game:GetService("RunService").RenderStepped:Connect(function() | |
426 | if com1:InvokeServer() then | |
427 | for _,part in pairs(com1:InvokeServer():GetDescendants()) do | |
428 | coroutine.resume(coroutine.create(function() | |
429 | if part:IsA("BasePart") then | |
430 | part.CanCollide = false | |
431 | if part:FindFirstChild("attachment1") then | |
432 | part.attachment1.Parent = owner.Character[part.Name] | |
433 | part.Position = owner.Character[part.Name].Position | |
434 | end | |
435 | elseif part:IsA("Humanoid") then | |
436 | part:Destroy() | |
437 | end | |
438 | end)) | |
439 | end | |
440 | end | |
441 | end) | |
442 | ||
443 | script.Parent.WaitRemote:FireServer() | |
444 | ]==],script) | |
445 | ||
446 | game:GetService("RunService").Heartbeat:Connect(function() | |
447 | for i=1,#coms do | |
448 | if not coms[i].Parent then | |
449 | local ClassName = coms[i].ClassName | |
450 | coms[i] = Instance.new(ClassName,script) | |
451 | if ClassName == "RemoteEvent" then | |
452 | coms[i].OnServerEvent:Connect(comsfuncs[i]) | |
453 | elseif ClassName == "RemoteFunction" then | |
454 | coms[i].OnServerInvoke = comsfuncs[i] | |
455 | end | |
456 | end | |
457 | if coms[i].Name ~= "Com" .. tostring(i) then | |
458 | coms[i].Name = "Com" .. tostring(i) | |
459 | end | |
460 | end | |
461 | end) | |
462 | script.Parent = owner.PlayerGui | |
463 | print("waiting") | |
464 | waitremote.OnServerEvent:Wait() | |
465 | print("Destroy! wait remote") | |
466 | waitremote:Destroy() | |
467 | owner.Character.Parent = nil |