RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"script a tool that makes the player shrink when player left clicks the tool"
-- local script inside the tool local tool = script.Parent local Players = game:GetService("Players") local player = Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() tool.Activated:Connect(function() character:SetPrimaryPartCFrame(character.PrimaryPart.CFrame * CFrame.new(0, -character.PrimaryPart.Size.Y/2, 0)) character.PrimaryPart.Size = character.PrimaryPart.Size / 2 for _, part in ipairs(character:GetChildren()) do if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then part.Size = part.Size / 2 part.CFrame = part.CFrame * CFrame.new(0, -part.Size.Y/2, 0) end end end)