Roblox Scripting Guide: In game virtual "ticket" system + More (DESC.)
Автор: ABK 2017
Загружено: 2019-03-08
Просмотров: 364
Hey guys! I wasn't exactly sure how to name this video can you tell? But basically this video is a way to create a virtual value, like a leaderstat, from a clicked part and then use it on another part for anything (in this video it gives a tool). It also has a check system in place and a gui that will show when these parts are clicked(click detector). Anyway enjoy and I would appreciate a view/sub if it was helpful and you use the script. Thanks guys I appreciate it! So see below for the script and good luck and have fun! ...
--SCRIPT IN TICKET GIVER PART COPY BELOW
game:GetService("Players")
local sgui1 = game.Workspace.Sign2.SG2
local btn = script.Parent
local CursorId = "2287179355"
btn.BrickColor = BrickColor.Green()
sgui1.Enabled = false
local ClickDetector = Instance.new("ClickDetector")
ClickDetector.Parent = btn
ClickDetector.MaxActivationDistance = 10
ClickDetector.CursorIcon = "rbxassetid://"..CursorId
ClickDetector.MouseHoverEnter:Connect(function()
btn.Transparency = 0.2
end)
ClickDetector.MouseHoverLeave:Connect(function()
btn.Transparency = 0
end)
ClickDetector.MouseClick:Connect(function(player)
local Backpack = player:WaitForChild("Backpack")
local FindTool = Backpack:FindFirstChild("Ticket")
if FindTool then
sgui1.Enabled = true
wait(3)
sgui1.Enabled = false
else
local tckt = Instance.new("StringValue")
tckt.Name = "Ticket"
tckt.Parent = player.Backpack
tckt.Value = player.Name
wait()
end
end)
--SCRIPT COPY ABOVE
-----------------------------------------------------------------------------------
--SCRIPT COPY BELOW
game:GetService("Players")
game:GetService("ReplicatedStorage")
local sign = game.Workspace.Sign
local sgui = game.Workspace.Sign.SG1
local gun = game.ReplicatedStorage.Sword
local btn = script.Parent
local CursorId = "2287179355"
btn.BrickColor = BrickColor.Red()
sgui.Enabled = false
local ClickDetector = Instance.new("ClickDetector")
ClickDetector.Parent = btn
ClickDetector.MaxActivationDistance = 10
ClickDetector.CursorIcon = "rbxassetid://"..CursorId
ClickDetector.MouseHoverEnter:Connect(function()
btn.Transparency = 0.2
end)
ClickDetector.MouseHoverLeave:Connect(function()
btn.Transparency = 0
end)
ClickDetector.MouseClick:Connect(function(player)
local Backpack = player:WaitForChild("Backpack")
local FindTool = Backpack:FindFirstChild("Ticket")
local SwordFind = Backpack:FindFirstChild("Sword")
if FindTool and
not SwordFind then
local newgun = gun:Clone()
newgun.Parent = player.Backpack
else
sgui.Enabled = true
wait(3)
sgui.Enabled = false
end
end)
--SCRIPT COPY ABOVE
Create a Roblox Account!
https://www.roblox.com/home?rbxp=2097...
Working on a couple games!
https://www.roblox.com/games/24977807...
https://www.roblox.com/games/22538157...
Roblox ABK2017 Studios T-Shirt!:
https://www.roblox.com/catalog/135222...
CREDITS:
Intro/outro graphics- ABK2017/MadDog
Intro music- ABK2017
#ABK2017
#Roblox
#TicketSystem

Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: