So i did this: LocalScript:
local target = script.Parent.Parent.target.Value
local sended = false
function send()
if sended == false then
local timer = tonumber(script.Parent.Time.Text)
sended = true
game.ReplicatedStorage.JailPlayer:FireServer(timer, target)
end
end
script.Parent.Send.MouseButton1Click:Connect(send)
script.Parent.Parent.target.Changed:Connect(function()
sended = false
end)
ServerScript in SSS:
game.ReplicatedStorage.JailPlayer.OnServerEvent:Connect(function(timer, target)
game.Players:FindFirstChild(target).JailTime.Value = timer
end)
And the player up here is a nil value ;(

9 comments
I note that but i want the target player but i got the target already from another script and there is a value where the playertarget is stored but i don't know how to get it back?
Let me edit my script.
Now it should work as long as target is the name of a player
I will try
It says that 300 is not a player and 300 is normally the timer it's so weird
Must be a part in your other script.
What do u mean?
add me on discord MaxDev_BE#8486
Will do.