Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- repeat wait() until #game:GetService("Players"):GetPlayers() > 0
- owner = game.Players.plytalent
- local com0 = Instance.new("RemoteEvent",script)
- local waitremote = Instance.new('RemoteEvent',script)
- waitremote.Name = "WaitRemote"
- -------- RAINBOW LEAVE IT TO ME
- local r = 255
- local g = 0
- local b = 0
- coroutine.resume(coroutine.create(function()
- while true do
- for i = 1, 255/5 do
- game:GetService("RunService").Stepped:Wait()
- g = g + 5
- end
- for i = 1, 255/5 do
- game:GetService("RunService").Stepped:Wait()
- r = r - 5
- end
- for i = 1, 255/5 do
- game:GetService("RunService").Stepped:Wait()
- b = b + 5
- end
- for i = 1, 255/5 do
- game:GetService("RunService").Stepped:Wait()
- g = g - 5
- end
- for i = 1, 255/5 do
- game:GetService("RunService").Stepped:Wait()
- r = r + 5
- end
- for i = 1, 255/5 do
- game:GetService("RunService").Stepped:Wait()
- b = b - 5
- end
- end
- end))
- com0.OnServerEvent:Connect(function(plr,partname,partcf,partsize)
- if plr ~= owner then
- return
- end
- if not charst then
- return
- end
- if not conchar then
- conchar = Instance.new("Model")
- hum = Instance.new("Humanoid",charst)
- hum.MaxHealth = 1
- return
- end
- if not conchar.Parent then
- conchar=nil
- return
- end
- conchar.Name = "Ghost"
- local part = conchar:FindFirstChild(partname)
- if not part then
- pcall(function()
- part = Instance.new("Part",conchar)
- part.Size = partsize + Vector3.new(0.05, 0.05, 0.05)
- part.Material = Enum.Material.ForceField
- if partname == "Head" then
- local headmesh = Instance.new("SpecialMesh",part)
- headmesh.Scale = Vector3.new(1.25,1.25,1.25)
- headmesh.MeshType = Enum.MeshType.Head
- end
- end)
- end
- if part then
- if partname == "HumanoidRootPart" then
- part.Transparency = 1
- end
- part.Name = partname
- part.Anchored = true
- part.CFrame = partcf
- part.Color = Color3.new(r/255, g/255, b/255)
- end
- end)
- local NLS = NLS or nil
- wait(3)
- if NLS then
- NLS([==[
- local remote=script.Parent.RemoteEvent
- game:GetService("RunService").RenderStepped:Connect(function()
- if game:GetService("Players").LocalPlayer.Character.Parent ~= workspace then
- game:GetService("Players").LocalPlayer.Character.Parent = workspace
- end
- end)
- local parttable={}
- wait()
- game:GetService("RunService").Stepped:Connect(function()
- coroutine.resume(coroutine.create(function()
- if workspace:FindFirstChild("Ghost") then
- for _,part in pairs(workspace:FindFirstChild("Ghost"):GetDescendants()) do
- if part:IsA("BasePart") then
- part.CanCollide = false
- part.Velocity = Vector3.new(0,0,0)
- elseif part:IsA("Humanoid") then
- part:Destroy()
- end
- end
- end
- end))
- for _, part in pairs(game:GetService("Players").LocalPlayer.Character:GetChildren()) do
- coroutine.resume(coroutine.create(function()
- local part = part
- if part:IsA("BasePart") then
- if parttable[part.Name] ~= part.CFrame then
- parttable[part.Name] = part.CFrame
- remote:FireServer(part.Name,part.CFrame,part.Size)
- end
- end
- end))
- end
- end)
- script.Parent.WaitRemote:FireServer()
- ]==],script)
- elseif script:FindFirstChild("LocalScript") then
- script.LocalScript.Disabled = false
- end
- script.Parent = owner.PlayerGui
- print("waiting")
- waitremote.OnServerEvent:Wait()
- print("Destroy! wait remote")
- waitremote:Destroy()
- charst = Instance.new("Model")
- hum = Instance.new("Humanoid",charst)
- hum.MaxHealth = 1
- charst.Name = "Ghost"
- owner.Character.Parent = nil
- conchar = charst:Clone()
- conchar.Parent = workspace
Add Comment
Please, Sign In to add comment