So basically my script had to get the data from a disabled script, copy it, and then put it in StarterPlayer as a Local Script.
local red = script.Parent
local green = script.Parent.Parent.Green
local e = script.Parent.E
red.MouseButton1Click:Connect(function()
red.Visible = false
green.Visible = true
local AntiSprint = Instance.new("LocalScript")
AntiSprint.Source = e.Source
AntiSprint.Parent = game:GetService("StarterPlayer")
end)
And this is the script that should of go in StarterPlayer as an Anti-Speed Hack that i also named it "E" but it was disabled.
local player = game.Players.LocalPlayer
wait(0.5)
if player.Character.Humanoid.WalkSpeed > 16 then
if player.Name == "DashDQ" then
do
end
else
player:Kick('You are kicked for speed hacking!')
end
end
How do i make this work?
