plytalent

test kuroneko

Nov 6th, 2021 (edited)
922
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function createFakeCharacter(DisplayName)
  2.     local Model0 = Instance.new("Model")
  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 Part7 = Instance.new("Part")
  10.     local Part8 = 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 Folder14 = Instance.new("Folder")
  17.     local Part15 = Instance.new("Part")
  18.     local SpecialMesh16 = Instance.new("SpecialMesh")
  19.     local AlignPosition17 = Instance.new("AlignPosition")
  20.     local AlignOrientation18 = Instance.new("AlignOrientation")
  21.     local Part19 = Instance.new("Part")
  22.     local SpecialMesh20 = Instance.new("SpecialMesh")
  23.     local AlignPosition21 = Instance.new("AlignPosition")
  24.     local AlignOrientation22 = Instance.new("AlignOrientation")
  25.     local Part23 = Instance.new("Part")
  26.     local SpecialMesh24 = Instance.new("SpecialMesh")
  27.     local AlignPosition25 = Instance.new("AlignPosition")
  28.     local AlignOrientation26 = Instance.new("AlignOrientation")
  29.     local Folder27 = Instance.new("Folder")
  30.     local Part28 = Instance.new("Part") --CatTails
  31.     local SpecialMesh29 = Instance.new("SpecialMesh")
  32.     local AlignOrientation30 = Instance.new("AlignOrientation")
  33.     local AlignPosition31 = Instance.new("AlignPosition")
  34.  
  35.     local Attachment32 = Instance.new("Attachment") --Head
  36.     local Attachment33 = Instance.new("Attachment") --Hair
  37.     local Attachment34 = Instance.new("Attachment") --Mask
  38.     local Attachment35 = Instance.new("Attachment") --CatEars
  39.  
  40.     local Attachment36 = Instance.new("Attachment") --Torso
  41.     local Attachment37 = Instance.new("Attachment") --CatTails
  42.    
  43.     Attachment32.Parent = Part1
  44.     Attachment33.Parent = Part23
  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.     Part19.Velocity = Vector3.new(0, 0, 0)
  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.  
  76.     AlignOrientation22.Parent = Part19
  77.     AlignOrientation22.Attachment0 = Attachment35
  78.     AlignOrientation22.Attachment1 = Attachment32
  79.     AlignOrientation22.RigidityEnabled = true
  80.  
  81.     AlignPosition25.Parent = Part23
  82.     AlignPosition25.Attachment0 = Attachment33
  83.     AlignPosition25.Attachment1 = Attachment32
  84.     AlignPosition25.RigidityEnabled = true
  85.  
  86.     AlignOrientation26.Parent = Part23
  87.     AlignOrientation26.Attachment0 = Attachment33
  88.     AlignOrientation26.Attachment1 = Attachment32
  89.     AlignOrientation26.RigidityEnabled = true
  90.  
  91.     AlignOrientation30.Parent = Part28
  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.     AlignPosition31.RigidityEnabled = true
  100.  
  101.     Model0.Name = "Kuroneko"
  102.     Model0.PrimaryPart = Part8
  103.     Part1.Name = "Head"
  104.     Part1.Parent = Model0
  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.     Part1.brickColor = BrickColor.new("Institutional white")
  113.     Part1.FormFactor = Enum.FormFactor.Symmetric
  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.     Part3.Parent = Model0
  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.     Part3.BrickColor = BrickColor.new("Institutional white")
  124.     Part3.LeftParamA = 0
  125.     Part3.LeftParamB = 0
  126.     Part3.LeftSurface = Enum.SurfaceType.Weld
  127.     Part3.Material = Enum.Material.Sand
  128.     Part3.RightParamA = 0
  129.     Part3.RightParamB = 0
  130.     Part3.RightSurface = Enum.SurfaceType.Weld
  131.     Part3.brickColor = BrickColor.new("Institutional white")
  132.     Part3.FormFactor = Enum.FormFactor.Symmetric
  133.     Part3.formFactor = Enum.FormFactor.Symmetric
  134.     Part4.Name = "Left Arm"
  135.     Part4.Parent = Model0
  136.     Part4.CFrame = CFrame.new(186.876953, 3, -73.9752808, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  137.     Part4.Position = Vector3.new(186.876953125, 3, -73.975280761719)
  138.     Part4.Color = Color3.new(0.972549, 0.972549, 0.972549)
  139.     Part4.Size = Vector3.new(1, 2, 1)
  140.     Part4.BrickColor = BrickColor.new("Institutional white")
  141.     Part4.Material = Enum.Material.Sand
  142.     Part4.brickColor = BrickColor.new("Institutional white")
  143.     Part4.FormFactor = Enum.FormFactor.Symmetric
  144.     Part4.formFactor = Enum.FormFactor.Symmetric
  145.     Part5.Name = "Right Arm"
  146.     Part5.Parent = Model0
  147.     Part5.CFrame = CFrame.new(189.876953, 3, -73.9752808, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  148.     Part5.Position = Vector3.new(189.876953125, 3, -73.975280761719)
  149.     Part5.Color = Color3.new(0.972549, 0.972549, 0.972549)
  150.     Part5.Size = Vector3.new(1, 2, 1)
  151.     Part5.BrickColor = BrickColor.new("Institutional white")
  152.     Part5.Material = Enum.Material.Sand
  153.     Part5.brickColor = BrickColor.new("Institutional white")
  154.     Part5.FormFactor = Enum.FormFactor.Symmetric
  155.     Part5.formFactor = Enum.FormFactor.Symmetric
  156.     Part6.Name = "Left Leg"
  157.     Part6.Parent = Model0
  158.     Part6.CFrame = CFrame.new(187.876953, 1, -73.9752808, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  159.     Part6.Position = Vector3.new(187.876953125, 1, -73.975280761719)
  160.     Part6.Color = Color3.new(0.972549, 0.972549, 0.972549)
  161.     Part6.Size = Vector3.new(1, 2, 1)
  162.     Part6.BottomSurface = Enum.SurfaceType.Smooth
  163.     Part6.BrickColor = BrickColor.new("Institutional white")
  164.     Part6.Material = Enum.Material.Sand
  165.     Part6.brickColor = BrickColor.new("Institutional white")
  166.     Part6.FormFactor = Enum.FormFactor.Symmetric
  167.     Part6.formFactor = Enum.FormFactor.Symmetric
  168.     Part7.Name = "Right Leg"
  169.     Part7.Parent = Model0
  170.     Part7.CFrame = CFrame.new(188.876953, 1, -73.9752808, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  171.     Part7.Position = Vector3.new(188.876953125, 1, -73.975280761719)
  172.     Part7.Color = Color3.new(0.972549, 0.972549, 0.972549)
  173.     Part7.Size = Vector3.new(1, 2, 1)
  174.     Part7.BottomSurface = Enum.SurfaceType.Smooth
  175.     Part7.BrickColor = BrickColor.new("Institutional white")
  176.     Part7.Material = Enum.Material.Sand
  177.     Part7.brickColor = BrickColor.new("Institutional white")
  178.     Part7.FormFactor = Enum.FormFactor.Symmetric
  179.     Part7.formFactor = Enum.FormFactor.Symmetric
  180.     Part8.Name = "HumanoidRootPart"
  181.     Part8.Parent = Model0
  182.     Part8.CFrame = CFrame.new(188.376953, 3, -73.9752808, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  183.     Part8.Position = Vector3.new(188.376953125, 3, -73.975280761719)
  184.     Part8.Color = Color3.new(0.972549, 0.972549, 0.972549)
  185.     Part8.Transparency = 1
  186.     Part8.Size = Vector3.new(2, 2, 1)
  187.     Part8.BottomSurface = Enum.SurfaceType.Smooth
  188.     Part8.BrickColor = BrickColor.new("Institutional white")
  189.     Part8.LeftParamA = 0
  190.     Part8.LeftParamB = 0
  191.     Part8.Material = Enum.Material.Sand
  192.     Part8.RightParamA = 0
  193.     Part8.RightParamB = 0
  194.     Part8.TopSurface = Enum.SurfaceType.Smooth
  195.     Part8.brickColor = BrickColor.new("Institutional white")
  196.     Part8.FormFactor = Enum.FormFactor.Symmetric
  197.     Part8.formFactor = Enum.FormFactor.Symmetric
  198.     CharacterMesh9.Parent = Model0
  199.     CharacterMesh9.BodyPart = Enum.BodyPart.Torso
  200.     CharacterMesh9.MeshId = 48112070
  201.     Pants10.Name = "Pants"
  202.     Pants10.Parent = Model0
  203.     Pants10.PantsTemplate = "http://www.roblox.com/asset/?id=1210858273"
  204.     Shirt11.Name = "Shirt"
  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
Add Comment
Please, Sign In to add comment