Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would someone go about making a "Tag" function?

Asked by 6 years ago

Similar to the one in Jailbreak. I've tried countless times and none of them worked. Not meaning to ask anyone for the script but could anyone possible guide me through it?

On contact with another player a UI will pop in (I've already made it and tweened it) The ui says "Hold E To Tag"

1 answer

Log in to vote
0
Answered by 6 years ago

You should probably just check the distance between players instead of having each of their parts have a touched event and if you want it to be similar to jailbreak.

01local runService = game:GetService("RunService")
02local contextService = game:GetService("ContextActionService")
03 
04local ply = game.Players.LocalPlayer
05local char = ply.Character
06local ui = ply.PlayerGui.TagUi  --Assuming this is a ScreenGui
07 
08ply.CharacterAdded:connect(function(c)
09    char = c
10end)
11 
12function tweenUi()
13    --Put Code to tween your Ui and tag progress
14end
15 
View all 39 lines...
Ad

Answer this question