Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions soundvision.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
local p = game.Players.LocalPlayer

local function make()
local pg = p:FindFirstChild("PlayerGui")
if not pg or pg:FindFirstChild("Z") then return end

local sg = Instance.new("ScreenGui", pg)
sg.Name = "Z"

-- Mycket större ram (220x110)
local f = Instance.new("Frame", sg)
f.Size, f.Active, f.Draggable = UDim2.new(0, 220, 0, 110), true, true
f.BackgroundColor3 = Color3.new(0, 0, 0)
f.Position = UDim2.new(0.5, -110, 0.5, -55)
f.BackgroundTransparency = 0.2 -- Lite genomskinlig så man ser genom ramen
Instance.new("UICorner", f).CornerRadius = UDim.new(0, 15)

-- Riktigt stor LEAVE-knapp
local lB = Instance.new("TextButton", f)
lB.Size = UDim2.new(0, 190, 0, 80)
lB.Position = UDim2.new(0, 15, 0, 15)
lB.Text = "LEAVE"
lB.Font = Enum.Font.SourceSansBold
lB.TextSize = 40 -- Riktigt stor text
lB.BackgroundColor3 = Color3.new(0.8, 0, 0)
lB.TextColor3 = Color3.new(1, 1, 1)
Instance.new("UICorner", lB).CornerRadius = UDim.new(0, 12)

-- Lägger till en snygg vit kant runt knappen
local stroke = Instance.new("UIStroke", lB)
stroke.Thickness = 2
stroke.Color = Color3.new(1, 1, 1)

-- Kick-funktionen
lB.MouseButton1Click:Connect(function()
p:Kick("Kicked by SoundVision")
end)
Comment on lines +35 to +37
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Find soundvision.lua and examine its location and context
find . -name "soundvision.lua" -type f 2>/dev/null

Repository: dawid-scripts/Fluent

Length of output: 81


🏁 Script executed:

#!/bin/bash
# Read the soundvision.lua file to examine the script context
cat -n soundvision.lua

Repository: dawid-scripts/Fluent

Length of output: 1774


Use a RemoteEvent to communicate kick requests to the server.

The Player:Kick() method cannot be called from a LocalScript. This script runs on the client (accesses game.Players.LocalPlayer, creates UI in PlayerGui), but Kick() is a server-only method. The current implementation will fail silently or throw a security error. Use a RemoteEvent to send a kick request to a ServerScript, which then executes Player:Kick().

🤖 Prompt for AI Agents
In soundvision.lua around lines 35 to 37, the client is calling p:Kick() which
is server-only; replace this with a RemoteEvent-based flow: create a RemoteEvent
in ReplicatedStorage (e.g., "KickRequest"), change the LocalScript to FireServer
the kick reason when lB.MouseButton1Click fires, and implement a ServerScript
that listens to that RemoteEvent and calls player:Kick(reason) server-side;
additionally validate and rate-limit requests in the server handler to avoid
misuse (ensure the server uses the RemoteEvent's player parameter rather than
trusting any client-sent player identity).

end

task.spawn(function()
while task.wait(2) do
make()
end
end)