Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait(0.2)
- UIS = game:GetService("UserInputService")
- mouse = game.Players.Beginner0929:GetMouse()
- BoneZone = Instance.new("RemoteEvent")
- BoneZone.Parent = game.ReplicatedStorage
- frame = Instance.new("Part")
- frame.CanCollide = false
- frame.Size = Vector3.new(2,0.5,2)
- frame.Color = Color3.fromRGB(1,0,0)
- frame.TopSurface = Enum.SurfaceType.Smooth
- frame.BottomSurface = Enum.SurfaceType.Smooth
- frame.Parent = game.ReplicatedStorage
- frame:Clone()
- Framebone = Instance.new("Part")
- frame.CanCollide = false
- Framebone.Size = Vector3.new(1,2.78,0.75)
- specialmesh = Instance.new("SpecialMesh")
- specialmesh.MeshId = "rbxassetid://465130937"
- specialmesh.Parent = Framebone
- specialmesh.Scale = Vector3.new(1,2.78,0.75)
- Framebone:Clone()
- sound = Instance.new("Sound")
- sound.Parent = frame
- sound.SoundId = "rbxassetid://401680588"
- UIS.InputBegan:Connect(function(key, processed)
- if processed then return end
- if key.UserInputType == Enum.UserInputType.Keyboard then
- if key.KeyCode == Enum.KeyCode.R then
- game.ReplicatedStorage.BoneZone:FireServer(mouse.Hit.X, mouse.Hit.Y, mouse.Hit.Z)
- game.ReplicatedStorage.BoneZone.OnServerEvent:Connect(function(player, mouseX, mouseY, mouseZ)
- frame.Position = Vector3.new(mouseX,mouseY,mouseZ)
- frame.Parent = workspace
- frame.Anchored = true
- sound:Play()
- frame.Transparency = 0
- wait(0.1)
- frame.Transparency = 1
- wait(0.1)
- frame.Transparency = 0
- wait(0.1)
- frame.Transparency = 1
- wait(0.1)
- frame.Transparency = 0
- wait(0.1)
- frame.Transparency = 1
- wait(0.1)
- frame.Transparency = 0
- wait(0.1)
- frame.Transparency = 1
- wait(0.2)
- Framebone.Position = frame.Position + Vector3.new(0,-1,0)
- Framebone.Parent = workspace
- Framebone.Anchored = true
- Framebone.Touched:Connect(function(hit)
- if hit.Parent:FindFirstChild("Humanoid") then
- hit.Parent:FindFirstChild("Humanoid"):TakeDamage(5)
- wait(1)
- frame:Destroy()
- Framebone:Destroy()
- end
- end)
- end)
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement