Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(3)
- local remote = nil
- local player = owner
- if player:FindFirstChild("Yet") == nil then
- remote = Instance.new("RemoteEvent",player)
- remote.Name = "Yet"
- else
- remote = player:FindFirstChild("Yet")
- end
- remote.OnServerEvent:Connect(function(plr,mode,part,data)
- if mode == "anchor" then
- part.Anchored = true
- elseif mode == "unanchor" then
- --game:GetService("RunService").Heartbeat:Wait(1/32)
- part.Velocity = data
- wait()
- part.Anchored = false
- part:SetNetworkOwner(plr)
- wait()
- part.Anchored = true
- wait()
- part.Anchored = false
- elseif mode == "update" then
- part.CFrame = data
- elseif mode == "spawnpart" then
- local b = Instance.new("Part",workspace)
- b.CFrame = plr.Character.Head.CFrame * CFrame.new(0,0,-5)
- b.Material = Enum.Material.Brick
- b.Color = Color3.fromRGB(163,163,163)
- b.Size = Vector3.new(4,4,4)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement