Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local RS = game:GetService("ReplicatedStorage")
- local CS = game:GetService("CollectionService")
- local SoovPushUp: Animation = script.PushUp
- local RroPullUp: Animation = script.PullUp
- local BloxShaodw: Animation = script.ShadowBoxing
- local Character1 = workspace.Map.Soovierr
- local Character2 = workspace.Map.Rrowipw;
- local Character3 = workspace.Map.BloxSennin;
- local mainTable = {Character1,Character2, Character3}
- -- PLAYING ANIMATIONS --
- Character1:WaitForChild("Humanoid"):LoadAnimation(SoovPushUp):Play()
- Character2:WaitForChild("Humanoid"):LoadAnimation(RroPullUp):Play()
- Character3:WaitForChild("Humanoid"):LoadAnimation(BloxShaodw):Play()
- -- MAIN FUNCTIONS/METODS --
- local function setSpeed(Humanoid: Humanoid, WK: number, JP: number)
- Humanoid.WalkSpeed = WK;
- Humanoid.JumpPower = JP;
- end
- for Index,Value in pairs(mainTable) do
- Value.ProximityPrompt.Triggered:Connect(function(Player)
- local RemoteString = "";
- if Value.Name == mainTable[1].Name and not CS:HasTag(Player.Character, "StrengthTrainer") then
- RemoteString = "StrengthTrainer";
- elseif Value.Name == mainTable[2].Name and not CS:HasTag(Player.Character, "MagicTrainer") then
- RemoteString = "MagicTrainer";
- elseif Value.Name == mainTable[3].Name and not CS:HasTag(Player.Character, "ShadowTrainer") then
- RemoteString = "ShadowTrainer";
- end
- if RemoteString == "" then warn("No Input") return end
- RS.Events.PromptSkills:FireClient(Player,RemoteString);
- setSpeed(Player.Character:WaitForChild("Humanoid"), 0,0)
- end)
- end
- RS.Events.PromptSkills.OnServerEvent:Connect(function(Player, Statement)
- print(Statement)
- if Statement == "MagicTrainer" and not CS:HasTag(Player.Character, "MagicTrainer") then
- CS:AddTag(Player.Character, "MagicTrainer")
- elseif Statement == "StrengthTrainer" and not CS:HasTag(Player.Character, "StrengthTrainer") then
- CS:AddTag(Player.Character, "StrengthTrainer")
- local FlashStepTool = RS.Skills["Flash Step"]:Clone()
- FlashStepTool.Parent = Player:WaitForChild("Backpack");
- elseif Statement == "ShadowTrainer" and not CS:HasTag(Player.Character, "ShadowTrainer") then
- CS:AddTag(Player.Character, "ShadowTrainer")
- local ShadSneakTool = RS.Skills.Wraith:Clone()
- ShadSneakTool.Parent = Player:WaitForChild("Backpack");
- end
- setSpeed(Player.Character:WaitForChild("Humanoid"), 16,50);
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement