Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- repeat wait() until game.Players.LocalPlayer.Character
- local plr = game.Players.LocalPlayer
- local schar = plr.Character:FindFirstChildOfClass("Folder")
- local remote;
- local atype;
- if schar.Name == "Construct" then
- atype = "Unique"
- else
- atype = "Ultimate"
- end
- for i,v in pairs(game.ReplicatedStorage.RemoteEvents:GetChildren()) do
- if v.Name:find("%d") then
- remote = v
- end
- end
- while wait() do
- for i,v in pairs(workspace:GetChildren()) do
- pcall(function()
- if v:FindFirstChild("HumanoidRootPart") and v ~= plr.Character then
- local ohTable1 = {
- ["char"] = plr.Character,
- ["direction"] = Vector3.new(10,0,10),
- ["charName"] = schar.Name,
- ["charhit"] = v,
- ["attackType"] = atype
- }
- remote:FireServer(ohTable1)
- end
- end)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement