0% found this document useful (0 votes)
8 views2 pages

Roblox Nanami Cut GUI Script

The script handles a client-side event for a game feature called 'NanamiCheck', which involves displaying a GUI element that animates based on user input. It tracks mouse clicks or button presses to control the animation of a cutting bar and applies visual effects if certain conditions are met. The script also manages cleanup of temporary objects using the Debris service to prevent memory leaks.

Uploaded by

tatapapangkorn
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views2 pages

Roblox Nanami Cut GUI Script

The script handles a client-side event for a game feature called 'NanamiCheck', which involves displaying a GUI element that animates based on user input. It tracks mouse clicks or button presses to control the animation of a cutting bar and applies visual effects if certain conditions are met. The script also manages cleanup of temporary objects using the Debris service to prevent memory leaks.

Uploaded by

tatapapangkorn
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

local ReplicatedStorage = game:GetService("ReplicatedStorage");

local Players = game:GetService("Players");


local Debris = game:GetService("Debris");
local UserInputService = game:GetService("UserInputService");
local TweenService = game:GetService("TweenService");

local Player = [Link];

local Camera = [Link];

local NanamiEvent = [Link];


local CutGUI = [Link];
local Live = workspace:WaitForChild('Live');

[Link] = function(Target, TimeDur, User)


local TempGUI = CutGUI:Clone();
[Link] = -80;
[Link] = Live[[Link]].HumanoidRootPart;
[Link] = Live[[Link]].HumanoidRootPart;
local MainBar = [Link];
local Cutter = [Link];
local Temp1,Temp2,Temp3 = false,false,false
local InputConnection =
[Link]:Connect(function(InputObject)
if not Temp1 then
if [Link] == [Link].MouseButton1 or
[Link] == [Link] then
if Temp2 then
Temp3 = true;
return;
end;
Temp1 = true;
end;
end;
end);

local Counter = .005;


local Time = 0;
while Counter < 1 and (User:GetAttribute('NANAMIAIM') and not (Temp3 or Temp1))
do
local Timed = [Link]();
local Division = Timed / TimeDur;
local Difference = [Link](.7 - Counter);

if Counter < .7 then


[Link] = Counter/.7*80-80;
else
[Link] = 0;
end;
if Difference < .025 then
Division = Division / 8;
elseif Difference < .05 then
Division = Division / 4;
end;
Counter = Counter + Division;
[Link] = [Link](Counter, .5);
if Difference < .02 then
Temp2 = true;
Temp3 = true;
else
Temp2 = false;
end;
if Temp2 then
Time = Time + Timed;
end;
end;
InputConnection:Disconnect();
if Temp3 and User:GetAttribute('NANAMIAIM') then
[Link] = [Link](.7,.5);
TweenService:Create(TempGUI, [Link](.25), {['Size'] =
[Link](10,200,10,200)}):Play();
[Link] = [Link](.016, 12);
TweenService:Create(Cutter, [Link](0.5, [Link]), {
['Size'] = [Link](0, 24);
['BackgroundColor3'] = [Link](1,0,0);
['BackgroundTransparency'] = 1
}):Play();
local ColorCorrection = [Link]("ColorCorrectionEffect",
[Link]);
[Link] = [Link](0,0,0);
Debris:AddItem(ColorCorrection, .15);
end;
Debris:AddItem(TempGUI,.5);
return Temp3;
end;

You might also like