Hello I made a pc hack code
but [Wht] value is should be HT2
but Wht value is 1 when remote fired
Remote Fire Code:
local userInputService = game:GetService("UserInputService")
local HackBegin = game.ReplicatedStorage.Events:WaitForChild('HackBeg')
local playerS = game:GetService("Players")
local player = playerS.LocalPlayer
local Whc = script.Parent.Parent.WhcComp
local Wht = script.Parent.Parent.WhichHT
userInputService.InputBegan:Connect(function(input, gameProcessedEvent)
if input.UserInputType == Enum.UserInputType.Keyboard then
if input.KeyCode == Enum.KeyCode.E then
warn(Wht.Value) -- this HT2
HackBegin:FireServer(player, Whc.Value, Wht.Value)
end
end
end)
Remote Fired Code:
local RemoteEvent = game.ReplicatedStorage.Events:WaitForChild("HackBeg")
local MyNumb = script.Parent.MyNumber
RemoteEvent.OnServerEvent:Connect(function(player, PCN, Wht)
if MyNumb.Value == 1 then
local character = player.Character
script.Parent.ProgressMultipler.Value += 1
warn(Wht) -- This not should be 1
character.Torso.CFrame = script.Parent:FindFirstChild(Wht).CFrame
end
end)