Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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:SetNetworkOwner(plr)
- part.Anchored = true
- elseif mode == "unanchor" then
- print(data)
- --game:GetService("RunService").Heartbeat:Wait(1/32)
- part.Velocity = data
- 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)
Add Comment
Please, Sign In to add comment