script.flashlight:GetPropertyChangedSignal("Value"):Connect(function()
game.Players.LocalPlayer.Character.script.VisualizeFlashlight:FireServer()
v6.fpart.snd:Play();
LocalPlayer.Character:WaitForChild("Handle").SpotLight.Enabled = false
LocalPlayer.Character:WaitForChild("Handle").SpotLight2.Enabled = false
if script.flashlight.Value == true then
v6.outer.outer.Enabled = true;
v6.fpart.inner.Enabled = true;
return;
end;
game.Players.LocalPlayer.Character.script.UnVisualizeFlashlight:FireServer()
v6.outer.outer.Enabled = false;
v6.fpart.inner.Enabled = false;
end);
local v12 = CFrame.new(0, 0, -1);
local CurrentCamera = game.Workspace.CurrentCamera;
local u2 = 0;
local u3 = 0;
local u4 = 0;
local u5 = 0;
local u6 = 0;
local u7 = 0;
local u8 = Head.Position.Y - HumanoidRootPart.Position.Y;
RunService.RenderStepped:Connect(function()
ring.LocalTransparencyModifier = -math.huge;
local LookVector = CurrentCamera.CFrame.LookVector;
u2 = LookVector.x;
u3 = LookVector.y;
u4 = LookVector.z;
u5 = tween(u5, u2, 0.25);
u6 = tween(u6, u3, 0.25);
u7 = tween(u7, u4, 0.25);
if v3.Humanoid:GetState() == Enum.HumanoidStateType.Dead then
v6.fpart.CFrame = Head.CFrame * CFrame.new(0, 0, -2);
return;
end;
v6.fpart.CFrame = CFrame.new(HumanoidRootPart.CFrame.p, HumanoidRootPart.CFrame.p + Vector3.new(u5, u6, u7)) * CFrame.new(0, u8 * 1, 3) * CFrame.Angles(-math.rad(0), 0, 0);
end);```
#mobile button
20 messages · Page 1 of 1 (latest)
wats the prob
how to make a mobile button via ContextActionService
this script is for a flashlight
?
I communicate through a translator if you need me to.
the translator wont understand slang
The script isn't mine, just adapting it to the game.
do you at least understand the script?
I know
game:GetService("Players").LocalPlayer
+-
we wont just fix scripts for you if you dont even understand them
this script looks old and outdated
i recommend you just make your own, a flashlight isnt that hard