Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --ServerScriptService
- wait(10)
- --//Varibles
- local ArrowEvent = game.ReplicatedStorage.ArrowEvent
- --Main
- ArrowEvent:FireAllClients(game.Workspace.Part1,true)
- wait(5)
- ArrowEvent:FireAllClients(game.Workspace.Part1,false)
- wait(5)
- ArrowEvent:FireAllClients(game.Workspace.Part2,true)
- wait(5)
- ArrowEvent:FireAllClients(game.Workspace.Part2,false)
- wait(5)
- ArrowEvent:FireAllClients(game.Workspace.Part3,true)
- --StarterPlayerScripts
- local Player = game.Players.LocalPlayer
- local Character = Player.Character or Player.CharacterAdded:Wait()
- local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
- local Beam = script:WaitForChild("Beam"):Clone()
- local function CreateBeam(Beam,Attachment0,Part)
- local Attachment1 = Part:FindFirstChild("Attachment")
- if Attachment1 then
- Beam.Attachment0 = Attachment0
- Beam.Attachment1 = Attachment1
- end
- end
- game.ReplicatedStorage.ArrowEvent.OnClientEvent:Connect(function(Part,Value)
- if Value == true then
- local Attachment0 = HumanoidRootPart:FindFirstChild("RootRigAttachment")
- CreateBeam(Beam,Attachment0,Part)
- Beam.Parent = Character
- else
- Beam:Remove()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement